mirror of
https://github.com/6dylan6/jdpro.git
synced 2026-02-08 08:24:16 +00:00
1
This commit is contained in:
parent
5b0842125b
commit
bcd2e60558
@ -154,14 +154,15 @@ async function usersign() {
|
||||
console.log(`${$.name} API请求失败,请检查网路重试`)
|
||||
} else {
|
||||
data = JSON.parse(data);
|
||||
JSON.stringify(data);
|
||||
if (data) {
|
||||
if (data.code === 200) {
|
||||
console.log(`签到成功:获得积分${data.data.signInfo.signNum}`);
|
||||
$.log(`总积分:${data.data.totalNum}\n`);
|
||||
} else {
|
||||
} else if(data.code === 302){
|
||||
console.log("已完成签到!!!\n");
|
||||
}
|
||||
} else {
|
||||
$.log(JSON.stringify(data));
|
||||
}
|
||||
}
|
||||
}
|
||||
} catch (e) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user