|
|
|
|
@ -17338,8 +17338,9 @@ function tasks_reducer(state, action) {
|
|
|
|
|
while (1) switch (_context24.prev = _context24.next) {
|
|
|
|
|
case 0:
|
|
|
|
|
GameState = mes.GameState, Data = mes.Data, challenge = mes.challenge, OtherData = mes.OtherData;
|
|
|
|
|
OtherData = OtherData || {};
|
|
|
|
|
if (Data) {
|
|
|
|
|
Data.extras = {
|
|
|
|
|
OtherData.extras = {
|
|
|
|
|
exercise_id: searchParams.get("exercisesId"),
|
|
|
|
|
//试卷id
|
|
|
|
|
question_id: searchParams.get("questionId"),
|
|
|
|
|
@ -17352,7 +17353,7 @@ function tasks_reducer(state, action) {
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
if (!(challenge === 'info')) {
|
|
|
|
|
_context24.next = 6;
|
|
|
|
|
_context24.next = 7;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
mediator/* default */.Z.publish('evaluate-unity3d-result', {
|
|
|
|
|
@ -17361,20 +17362,20 @@ function tasks_reducer(state, action) {
|
|
|
|
|
challenge_info: objectSpread2_default()({}, taskData.challenge)
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
_context24.next = 16;
|
|
|
|
|
_context24.next = 17;
|
|
|
|
|
break;
|
|
|
|
|
case 6:
|
|
|
|
|
case 7:
|
|
|
|
|
if (!(GameState === 'Success')) {
|
|
|
|
|
_context24.next = 16;
|
|
|
|
|
_context24.next = 17;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
if (!(unity_3d_result || !with_code_file)) {
|
|
|
|
|
_context24.next = 15;
|
|
|
|
|
_context24.next = 16;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
_context24.next = 10;
|
|
|
|
|
_context24.next = 11;
|
|
|
|
|
return (0,service/* setUnity3dStatus */.JW)(taskId, base64.Base64.encode(taskId + new Date().getTime()), Data, OtherData);
|
|
|
|
|
case 10:
|
|
|
|
|
case 11:
|
|
|
|
|
response = _context24.sent;
|
|
|
|
|
status = response.status, data = response.data;
|
|
|
|
|
if (status == 0) {
|
|
|
|
|
@ -17407,13 +17408,13 @@ function tasks_reducer(state, action) {
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
_context24.next = 16;
|
|
|
|
|
_context24.next = 17;
|
|
|
|
|
break;
|
|
|
|
|
case 15:
|
|
|
|
|
case 16:
|
|
|
|
|
dispatch({
|
|
|
|
|
type: constant/* SHOW_EVALUATE_RESULT */.m5
|
|
|
|
|
});
|
|
|
|
|
case 16:
|
|
|
|
|
case 17:
|
|
|
|
|
case "end":
|
|
|
|
|
return _context24.stop();
|
|
|
|
|
}
|