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