1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2026-05-02 02:36:40 +08:00
This commit is contained in:
dylan
2023-06-23 16:12:53 +08:00
parent 5b0842125b
commit bcd2e60558
+3 -2
View File
@@ -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));
} }
} }
} }