mirror of https://github.com/KingRan/KR.git
parent
cc98cd43cf
commit
bc5d14aa13
|
@ -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`);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue