Skip to content

Commit 6d67a05

Browse files
committed
修正签到失效部分
1 parent cc8d2a2 commit 6d67a05

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

‎10010/10010.js‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ let VAL_findlotteryheader = chavy.getdata(KEY_findlotteryheader)
2323
chavy.log(`🔔 ${cookieName}`)
2424
await loginapp()
2525
await signapp()
26-
if (VAL_loginlotteryurl && VAL_findlotteryurl) await loginlottery()
26+
/*if (VAL_loginlotteryurl && VAL_findlotteryurl) await loginlottery()
2727
if (signinfo.encryptmobile) {
2828
await findlottery()
2929
if (signinfo.findlottery && signinfo.findlottery.acFrequency && signinfo.findlottery.acFrequency.usableAcFreq) {
3030
for (let i = 0; i < signinfo.findlottery.acFrequency.usableAcFreq; i++) {
3131
await lottery()
3232
}
3333
}
34-
}
34+
}*/
3535
await getinfo()
3636
showmsg()
3737
chavy.done()
@@ -168,7 +168,7 @@ function showmsg() {
168168
if (signinfo.signapp.signinMedal) {
169169
subTitle = `签到: 成功`
170170
detail = `积分: +${signinfo.signapp.prizeCount}, 成长值: +${signinfo.signapp.growthV}, 鲜花: +${signinfo.signapp.flowerCount}`
171-
} else if (JSON.stringify(signinfo.signapp) == '{}') {
171+
} else if (signinfo.signapp.msg == '用户今日已签到!') {
172172
subTitle = `签到: 重复`
173173
} else {
174174
subTitle = `签到: 失败`
@@ -186,7 +186,7 @@ function showmsg() {
186186
chavy.log(`❌ ${cookieName} signapp - response: ${JSON.stringify(signinfo.info)}`)
187187
}
188188

189-
if (signinfo.findlottery && signinfo.findlottery.acFrequency && signinfo.lotterylist) {
189+
/*if (signinfo.findlottery && signinfo.findlottery.acFrequency && signinfo.lotterylist) {
190190
subTitle += `; 抽奖: ${signinfo.findlottery.acFrequency.usableAcFreq}次`
191191
detail += '\n查看详情\n'
192192
@@ -195,7 +195,7 @@ function showmsg() {
195195
}
196196
} else {
197197
chavy.log(`❌ ${cookieName} signapp - response: ${JSON.stringify(signinfo.findlottery)}`)
198-
}
198+
}*/
199199

200200
chavy.msg(cookieName, subTitle, detail)
201201
}

‎ximalaya/ximalaya.js‎

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,22 @@ function showmsg() {
118118
if (signinfo.info.isTickedToday == false) {
119119
if (signinfo.signapp == 'true') {
120120
subTitle = '签到: 成功'
121-
detail = `共签: ${signinfo.info.totalCheckedCounts + 1}天, 积分: ${signinfo.acc.data.score}(+${signinfo.info.awardAmount})`
121+
if (signinfo.info.totalCheckedCounts == undefined || signinfo.info.totalCheckedCounts == null){
122+
detail = `积分: ${signinfo.acc.data.score}(+${signinfo.info.awardAmount})`
123+
} else{
124+
detail = `共签: ${signinfo.info.totalCheckedCounts + 1}天, 积分: ${signinfo.acc.data.score}(+${signinfo.info.awardAmount})`
125+
}
122126
} else {
123127
subTitle = '签到: 失败'
124128
detail = `说明: ${signinfo.signapp}`
125129
}
126130
} else {
127131
subTitle = `签到: 重复`
128-
detail = `共签: ${signinfo.info.totalCheckedCounts}天, 积分: ${signinfo.acc.data.score}(+${signinfo.info.awardAmount})`
132+
if (signinfo.info.totalCheckedCounts == undefined || signinfo.info.totalCheckedCounts == null){
133+
detail = `积分: ${signinfo.acc.data.score}(+${signinfo.info.awardAmount})`
134+
} else{
135+
detail = `共签: ${signinfo.info.totalCheckedCounts + 1}天, 积分: ${signinfo.acc.data.score}(+${signinfo.info.awardAmount})`
136+
}
129137
}
130138

131139
if (signinfo.browseapp) {

0 commit comments

Comments
 (0)