Commit 81e5273d authored by 李维's avatar 李维

修复判断对错题型分值默认2分的问题

parent 5728826d
...@@ -746,7 +746,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -746,7 +746,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
validater = this.setHotZoneCheckboxGroup(configItem, isDebug); validater = this.setHotZoneCheckboxGroup(configItem, isDebug);
this.scoreValidater.push(validater); this.scoreValidater.push(validater);
break; break;
// 连线组 // 连线组 [做题 - 显示]
case CONNECTION: case CONNECTION:
validater = this.setConnectionGroup(configItem, isDebug); validater = this.setConnectionGroup(configItem, isDebug);
this.scoreValidater.push(validater); this.scoreValidater.push(validater);
...@@ -1397,7 +1397,7 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -1397,7 +1397,7 @@ export default class SceneComponent extends MyCocosSceneComponent {
result.detail.correctSelect.push(option.isCorrect); result.detail.correctSelect.push(option.isCorrect);
if(option.isCorrect == currentCheckList[index].checked) { if(option.isCorrect == currentCheckList[index].checked) {
// 正确 返回分数 // 正确 返回分数
result.score += option.score && !isNaN(Number(option.score)) ? Number(option.score) : 2; result.score += option.score && !isNaN(Number(option.score)) ? Number(option.score) : 0;
} else { } else {
// 错误 // 错误
result.detail.right = false; result.detail.right = false;
......
...@@ -1077,28 +1077,28 @@ export const historyData = { ...@@ -1077,28 +1077,28 @@ export const historyData = {
"contentType": "0", "contentType": "0",
"configIndex": 12, "configIndex": 12,
"contentIndex": 0, "contentIndex": 0,
"currentSelectIndex": null, "currentSelectIndex": 0,
"currentSelectText": "", "currentSelectText": "can",
"correctSelectIndex": 0, "correctSelectIndex": 0,
"correctSelectText": "", "correctSelectText": "",
"right": false "right": true
}, },
{ {
"contentType": "0", "contentType": "0",
"configIndex": 12, "configIndex": 12,
"contentIndex": 1, "contentIndex": 1,
"currentSelectIndex": null, "currentSelectIndex": 1,
"currentSelectText": "", "currentSelectText": "can't",
"correctSelectIndex": 1, "correctSelectIndex": 1,
"correctSelectText": "", "correctSelectText": "",
"right": false "right": true
}, },
{ {
"contentType": "0", "contentType": "0",
"configIndex": 12, "configIndex": 12,
"contentIndex": 2, "contentIndex": 2,
"currentSelectIndex": null, "currentSelectIndex": 0,
"currentSelectText": "", "currentSelectText": "can",
"correctSelectIndex": 2, "correctSelectIndex": 2,
"correctSelectText": "", "correctSelectText": "",
"right": false "right": false
...@@ -1107,8 +1107,8 @@ export const historyData = { ...@@ -1107,8 +1107,8 @@ export const historyData = {
"contentType": "0", "contentType": "0",
"configIndex": 12, "configIndex": 12,
"contentIndex": 3, "contentIndex": 3,
"currentSelectIndex": null, "currentSelectIndex": 1,
"currentSelectText": "", "currentSelectText": "can't",
"correctSelectIndex": 3, "correctSelectIndex": 3,
"correctSelectText": "", "correctSelectText": "",
"right": false "right": false
...@@ -1123,8 +1123,8 @@ export const historyData = { ...@@ -1123,8 +1123,8 @@ export const historyData = {
"startText": "", "startText": "",
"correctEndIndex": 0, "correctEndIndex": 0,
"correctEndText": "", "correctEndText": "",
"currentEndIndex": 2, "currentEndIndex": -1,
"currentEndText": "a", "currentEndText": "",
"right": false "right": false
}, },
{ {
...@@ -1132,8 +1132,8 @@ export const historyData = { ...@@ -1132,8 +1132,8 @@ export const historyData = {
"startText": "", "startText": "",
"correctEndIndex": 1, "correctEndIndex": 1,
"correctEndText": "", "correctEndText": "",
"currentEndIndex": 0, "currentEndIndex": -1,
"currentEndText": "b", "currentEndText": "",
"right": false "right": false
}, },
{ {
...@@ -1170,14 +1170,14 @@ export const historyData = { ...@@ -1170,14 +1170,14 @@ export const historyData = {
15, 15,
16 16
], ],
"score": 0 "score": 2
} }
], ],
"basicScore": 0, "basicScore": 0,
"totalScore": 0, "totalScore": 2,
"isAllRight": false, "isAllRight": false,
"isAllWrong": true, "isAllWrong": false,
"startTimestamp": 1689057128454, "startTimestamp": 1689057318710,
"submitTimestamp": 1689057136559, "submitTimestamp": 1689058114291,
"answeringTime": 8105 "answeringTime": 795581
} }
\ No newline at end of file
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