|
@@ -36,6 +36,7 @@ import {
|
|
|
api_closeDelayCheck,
|
|
|
api_openCamera,
|
|
|
api_closeCamera,
|
|
|
+ api_recordAudioUpload
|
|
|
} from "/src/helpers/communication";
|
|
|
import state, { IPlayState, clearSelection, handleStopPlay, onPlay, resetPlaybackToStart, togglePlay, initSetPlayRate, resetBaseRate, scrollViewNote } from "/src/state";
|
|
|
import { IPostMessage } from "/src/utils/native-message";
|
|
@@ -313,7 +314,7 @@ export const addMeasureScore = (measureScore: any, show = true) => {
|
|
|
// console.log("🚀 ~ measureScore:", evaluatingData.evaluatings)
|
|
|
};
|
|
|
|
|
|
-const handleScoreResult = (res?: IPostMessage) => {
|
|
|
+const handleScoreResult = async (res?: IPostMessage) => {
|
|
|
console.log("返回", res, evaluatingData.oneselfCancleEvaluating);
|
|
|
// 如果是手动取消评测,不生成评测记录
|
|
|
// if (evaluatingData.oneselfCancleEvaluating) {
|
|
@@ -334,6 +335,10 @@ const handleScoreResult = (res?: IPostMessage) => {
|
|
|
if (header?.commond === "overall") {
|
|
|
console.log("🚀 ~ 评测返回:", res);
|
|
|
console.log("评测结束", body);
|
|
|
+ // 如果评测结果没有返回音频,需要调用api通知APP端上传音频
|
|
|
+ if (!body.url) {
|
|
|
+ await api_recordAudioUpload()
|
|
|
+ }
|
|
|
state.isHideEvaluatReportSaveBtn = false;
|
|
|
setTimeout(() => {
|
|
|
// 评测作业,如果不是完整评测,不展示评测弹窗
|