diff --git a/p__tasks__index.async.js b/p__tasks__index.async.js index b6bdee225b..72d6922b95 100644 --- a/p__tasks__index.async.js +++ b/p__tasks__index.async.js @@ -11330,7 +11330,7 @@ function tasks_reducer(state, action) { } function onLocalRun(input) { return tasks_async(this, null, function* () { - var _a3, _b, _c, _d, _e, _f, _g, _h; + var _a3, _b, _c, _d, _e, _f, _g, _h, _i; yield onUpdateCode(); const params = {}; if (searchParams.get("type") === "exercises") { @@ -11360,19 +11360,20 @@ function tasks_reducer(state, action) { }; } params.extras.currentUserId = userInfo == null ? void 0 : userInfo.user_id; + const inputValue = base64.Base64.encode(input || ""); const localParams = { git: (_d = taskData == null ? void 0 : taskData.myshixun) == null ? void 0 : _d.repo_name, - input: base64.Base64.encode(input || ""), - tpiId: (_e = taskData == null ? void 0 : taskData.myshixun) == null ? void 0 : _e.id, + input: new Array(((_e = taskData == null ? void 0 : taskData.test_sets) == null ? void 0 : _e.length) || 1).fill(inputValue), + tpiId: (_f = taskData == null ? void 0 : taskData.myshixun) == null ? void 0 : _f.id, tpiType: tpi_type, - buildId: (_f = taskData == null ? void 0 : taskData.game) == null ? void 0 : _f.id, + buildId: (_g = taskData == null ? void 0 : taskData.game) == null ? void 0 : _g.id, testCases: base64.Base64.encode(JSON.stringify((taskData == null ? void 0 : taskData.test_sets) || "")), extras: params.extras, - trimBlank: (_g = taskData == null ? void 0 : taskData.challenge) == null ? void 0 : _g.ignore_space, + trimBlank: (_h = taskData == null ? void 0 : taskData.challenge) == null ? void 0 : _h.ignore_space, runOnly: 1, testCasesType: taskData == null ? void 0 : taskData.testCasesType, testCasesExp: taskData == null ? void 0 : taskData.testCasesExp, - tpiRepoPath: (_h = taskData == null ? void 0 : taskData.myshixun) == null ? void 0 : _h.repo_name, + tpiRepoPath: (_i = taskData == null ? void 0 : taskData.myshixun) == null ? void 0 : _i.repo_name, sourceClassNames: [currentPath] }; const res2 = yield (0,service/* codeGameLocalBuild */.eA)(localParams);