Skip to content

Commit

Permalink
完善解析
Browse files Browse the repository at this point in the history
  • Loading branch information
yidasanqian committed Jun 17, 2024
1 parent 6c7cae3 commit b24759a
Showing 1 changed file with 7 additions and 12 deletions.
19 changes: 7 additions & 12 deletions check_in/zhiwen/zhiwen.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,16 @@ try {
$tool.post(myRequest, function (e, r, d) {
console.log(d);
var obj = JSON.parse(d);
if (!!obj.code) {
if (obj.code == 0) {
// {"flag":true,"code":0,"desc":"成功","count":null,"data":1310}
$tool.notify("智文签到成功!", `当前积分:${obj.data}`, { img: img });
$done();
}
else {
$tool.notify("智文签到失败!", `原因:${obj.desc}`, d, { img: img });
$done();
}
if (obj.code == 0) {
// {"flag":true,"code":0,"desc":"成功","count":null,"data":1310}
$tool.notify("智文签到成功!", `当前积分:${obj.data}`, { img: img });
$done();
}
else {
$tool.notify("智文签到失败!", d, d, { img: img });
$done();
$tool.notify("智文签到失败!", `原因:${obj.desc}`, d, { img: img });

}
$done();
})
} catch (e) {
console.log("🍎error" + e);
Expand Down

0 comments on commit b24759a

Please sign in to comment.