KingRan 2022-03-07 21:46:50 +08:00
parent cc98cd43cf
commit bc5d14aa13
1 changed files with 6 additions and 0 deletions

View File

@ -138,9 +138,12 @@ $.appId = "e395f"
$.done();
})
async function main() {
$.openFail=false
await joinActive();
await $.wait(2000);
if (!$.openFail){
await getUserInfo();
}
}
//参与活动
function joinActive() {
@ -155,6 +158,9 @@ function joinActive() {
if (data.iRet === 0) {
console.log(`活动开启成功\n`);
} else {
if (data.iRet === 2016){
$.openFail=true
}
console.log(`活动开启失败:${data.sErrMsg}\n`);
}
}