Skip to content

Commit a52e701

Browse files
committed
【10010】增加boxjs签到开关;修正判断。另外提醒:Cookie存活时间貌似有所调整,可能出现每天都需重新获取Cookie的情况,请自行考虑使用。
1 parent 131a559 commit a52e701

1 file changed

Lines changed: 9 additions & 7 deletions

File tree

‎10010/10010.js‎

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -172,14 +172,16 @@ function showmsg() {
172172
let detail = ''
173173
console.log(signinfo)
174174
// 签到结果
175-
if (signinfo.signapp.status == '0000') {
176-
subTitle = `签到: 成功`
175+
if (gosign == true) {
176+
if (signinfo.signapp.status == '0000') {
177+
subTitle = `签到: 成功 `
177178
detail = `积分: +${signinfo.signapp.data.prizeCount}, 成长值: +${signinfo.signapp.data.growthV}, 鲜花: +${signinfo.signapp.data.flowerCount}`
178-
} else if (signinfo.signapp.status == '0002') {
179-
subTitle = `签到: 重复`
180-
} else {
181-
subTitle = `签到: 失败`
179+
} else if (signinfo.signapp.status == '0002') {
180+
subTitle = `签到: 重复 `
181+
} else {
182+
subTitle = `签到: 失败 `
182183
chavy.log(`❌ ${cookieName} signapp - response: ${JSON.stringify(signinfo.signapp)}`)
184+
}
183185
}
184186

185187
if (signinfo.info.code == 'Y') {
@@ -198,7 +200,7 @@ function showmsg() {
198200

199201
if (golottery == true) {
200202
if (signinfo.findlottery && signinfo.findlottery.acFrequency && signinfo.lotterylist) {
201-
subTitle += `; 抽奖: ${signinfo.findlottery.acFrequency.usableAcFreq}次`
203+
subTitle += `抽奖: ${signinfo.findlottery.acFrequency.usableAcFreq}次`
202204
detail += '\n查看详情\n'
203205

204206
for (let i = 0; i < signinfo.findlottery.acFrequency.usableAcFreq; i++) {

0 commit comments

Comments
 (0)