1
0
mirror of https://github.com/6dylan6/jdpro.git synced 2026-05-01 18:06:41 +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请求失败,请检查网路重试`)
} 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));
}
}
}