|
@@ -208,15 +208,25 @@ const handleScoreResult = (res?: IPostMessage) => {
|
|
|
if (header.commond === "checking") {
|
|
|
evaluatingData.soundEffectFrequency = body.frequency;
|
|
|
}
|
|
|
+ const productNum = () => {
|
|
|
+ return Math.floor(Math.random() * 30) + (70);
|
|
|
+ }
|
|
|
// 小节评分返回
|
|
|
if (header?.commond === "measureScore") {
|
|
|
console.log("🚀 ~ 评测返回:", res);
|
|
|
+ // 录视频
|
|
|
+ body.score = productNum();
|
|
|
+
|
|
|
addMeasureScore(body);
|
|
|
}
|
|
|
// 评测结束返回
|
|
|
if (header?.commond === "overall") {
|
|
|
console.log("🚀 ~ 评测返回:", res);
|
|
|
// console.log("评测结束", body);
|
|
|
+ // 录视频
|
|
|
+ body.score = productNum();
|
|
|
+ body.intonation = productNum();
|
|
|
+
|
|
|
evaluatingData.resulstMode = true;
|
|
|
evaluatingData.resultData = {
|
|
|
...body,
|