Commit 54483603 authored by haiyoucuv's avatar haiyoucuv

新手引导

parent f98d2f3b
......@@ -69,12 +69,12 @@ class GameStore {
maxScore: number,
cd: number,
} = {
score: 0,
remainTimes: 0,
level: 0,
maxScore: 0,
cd: GameConfig.gameCd,
}
score: 0,
remainTimes: 0,
level: 0,
maxScore: 0,
cd: GameConfig.gameCd,
}
reset() {
this.gameInfo = {
......@@ -117,7 +117,13 @@ class GameStore {
}
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);
......
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