Commit c61466ca authored by mingyard's avatar mingyard

feat:修改判断

parent 086762e7
......@@ -222,9 +222,7 @@ export class TranslateService {
},
);
console.log('result', result);
if (!result?.data || result?.data?.filename) {
if (!result?.data || !result?.data?.filename) {
throw BadRequestError.default('语音合成失败');
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment