Skip to content

Commit

Permalink
test: ru
Browse files Browse the repository at this point in the history
Update rspack.dev.config.js
Update response.dev.js
Update response.js
  • Loading branch information
VirgilClyne committed Dec 19, 2024
1 parent 51c3b51 commit b33555f
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions rspack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default defineConfig({
},
optimization: {
minimize: false,
usedExports: true,
},
plugins: [
new NodePolyfillPlugin({
Expand Down
17 changes: 17 additions & 0 deletions src/response.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,23 @@ Console.info(`FORMAT: ${FORMAT}`);
break;
}
break;
case "ru":
switch (body.data?.status) {
case "OPEN":
break;
case "FULL":
body.data.status = "OPEN";
//body.data.message = "此 Beta 版本的测试员已满。";
body.data.app.eligibility = {
status: "NO_CRITERIA",
criteria: null,
};
break;
case undefined:
default:
break;
}
break;
default:
Console.debug(`/${PATHs[0]}/accounts/${PATHs[2]}/${PATHs[3]}/`);
break;
Expand Down
17 changes: 17 additions & 0 deletions src/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,23 @@ Console.info(`FORMAT: ${FORMAT}`);
break;
}
break;
case "ru":
switch (body.data?.status) {
case "OPEN":
break;
case "FULL":
body.data.status = "OPEN";
//body.data.message = "此 Beta 版本的测试员已满。";
body.data.app.eligibility = {
status: "NO_CRITERIA",
criteria: null,
};
break;
case undefined:
default:
break;
}
break;
default:
break;
}
Expand Down

0 comments on commit b33555f

Please sign in to comment.