|
|
|
|
@ -18767,25 +18767,26 @@ function tasks_reducer(state, action) {
|
|
|
|
|
} //延长环境时间
|
|
|
|
|
function _onGetUnity3dMessage() {
|
|
|
|
|
_onGetUnity3dMessage = asyncToGenerator_default()( /*#__PURE__*/regeneratorRuntime_default()().mark(function _callee24(mes) {
|
|
|
|
|
var GameState, Data, challenge, OtherData, _taskData$challenge3, response, status, data, _OtherData, _OtherData2;
|
|
|
|
|
var _taskData$challenge3;
|
|
|
|
|
var GameState, Data, challenge, OtherData, response, status, data, _OtherData, _OtherData2;
|
|
|
|
|
return regeneratorRuntime_default()().wrap(function _callee24$(_context24) {
|
|
|
|
|
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) {
|
|
|
|
|
OtherData.extras = {
|
|
|
|
|
exercise_id: searchParams.get("exercisesId"),
|
|
|
|
|
//试卷id
|
|
|
|
|
question_id: searchParams.get("questionId"),
|
|
|
|
|
// 题目id
|
|
|
|
|
challenge_id: (_taskData$challenge3 = taskData.challenge) === null || _taskData$challenge3 === void 0 ? void 0 : _taskData$challenge3.id,
|
|
|
|
|
// 关卡id
|
|
|
|
|
subject_id: searchParams.get("subject_id") || '',
|
|
|
|
|
competition_entry_id: searchParams.get("competition_entry_id"),
|
|
|
|
|
homework_common_id: _params.homeworkId
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
// if(Data){
|
|
|
|
|
OtherData.extras = {
|
|
|
|
|
exercise_id: searchParams.get("exercisesId"),
|
|
|
|
|
//试卷id
|
|
|
|
|
question_id: searchParams.get("questionId"),
|
|
|
|
|
// 题目id
|
|
|
|
|
challenge_id: (_taskData$challenge3 = taskData.challenge) === null || _taskData$challenge3 === void 0 ? void 0 : _taskData$challenge3.id,
|
|
|
|
|
// 关卡id
|
|
|
|
|
subject_id: searchParams.get("subject_id") || '',
|
|
|
|
|
competition_entry_id: searchParams.get("competition_entry_id"),
|
|
|
|
|
homework_common_id: _params.homeworkId
|
|
|
|
|
};
|
|
|
|
|
// }
|
|
|
|
|
if (!(challenge === 'info')) {
|
|
|
|
|
_context24.next = 7;
|
|
|
|
|
break;
|