Commit 54483603 authored by haiyoucuv's avatar haiyoucuv

新手引导

parent f98d2f3b
...@@ -69,12 +69,12 @@ class GameStore { ...@@ -69,12 +69,12 @@ class GameStore {
maxScore: number, maxScore: number,
cd: number, cd: number,
} = { } = {
score: 0, score: 0,
remainTimes: 0, remainTimes: 0,
level: 0, level: 0,
maxScore: 0, maxScore: 0,
cd: GameConfig.gameCd, cd: GameConfig.gameCd,
} }
reset() { reset() {
this.gameInfo = { this.gameInfo = {
...@@ -117,7 +117,13 @@ class GameStore { ...@@ -117,7 +117,13 @@ class GameStore {
} }
if (score >= minValidateScore) { if (score >= minValidateScore) {
params.validate = await startNecCaptcha("1ee4615751874cbeaea4dd4681930f61", 3); try {
params.validate = await startNecCaptcha("1ee4615751874cbeaea4dd4681930f61", 3);
} catch (e) {
PageCtrl.changePage(HomePage);
Toast.show("验证失败");
return;
}
} }
const { success, data } = await API.submit(params); const { success, data } = await API.submit(params);
......
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