|
@@ -23,6 +23,7 @@ import { api_musicPracticeRecordSave } from "../../api";
|
|
|
import { getAudioDuration } from "/src/view/audio-list";
|
|
|
import { debounce } from "/src/utils";
|
|
|
import { EvaluatingResultDriver } from "../../custom-plugins/guide-driver";
|
|
|
+import { api_recordAudioUpload } from "/src/helpers/communication";
|
|
|
|
|
|
export default defineComponent({
|
|
|
name: "evaluatResult",
|
|
@@ -76,6 +77,12 @@ export default defineComponent({
|
|
|
const res = await api_musicPracticeRecordSave(body);
|
|
|
if (res?.code === 200) {
|
|
|
evaluatingData.resultData.recordId = res.data;
|
|
|
+ // 如果评测结果没有返回音频,需要调用api通知APP端上传音频
|
|
|
+ if (!evaluatingData.resultData.url && evaluatingData.resultData.recordId) {
|
|
|
+ api_recordAudioUpload({
|
|
|
+ recordId: evaluatingData.resultData.recordId
|
|
|
+ })
|
|
|
+ }
|
|
|
}
|
|
|
evaluatingData.needReplayEvaluat = evaluatingData.oneselfCancleEvaluating ? true : false;
|
|
|
data.saveLoading = false;
|