bug fixes.

This commit is contained in:
NobyDa 2024-03-18 19:42:17 +08:00
parent 7771161f05
commit a5e6b059e3
No known key found for this signature in database
GPG Key ID: E6B0AC788D373C5B
1 changed files with 5 additions and 5 deletions

View File

@ -1,10 +1,10 @@
/*
哔哩哔哩漫画签到
脚本兼容: QuantumultX, Surge, Loon
脚本兼容QuantumultX, Surge, Loon
电报频道@NobyDa
问题反馈@NobyDa_bot
更新日期04/04/2023
更新日期2024/03/18
如果转载请注明出处
说明
@ -64,11 +64,11 @@ function checkin() {
$.post(bilibili, async function (error, response, data) {
if (error && !data) {
$.msgBody = `请求失败!\n${error}`;
} else if (parseInt(response.status) == 200) {
} else if (data.includes(`"code":0`)) {
$.msgBody = "签到成功!🎉";
} else if (/duplicate/.test(data)) {
} else if (data.includes(`"code":1`)) {
$.msgBody = "签到失败,今日已签过 ⚠️";
} else if (/uid must/.test(data)) {
} else if (data.includes(`"invalid_argument"`)) {
$.msgBody = "签到失败Cookie失效已清除 ⚠️";
$.setdata("", "CookieBM");
} else {