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

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

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