Skip to content

Commit 79f8407

Browse files
committed
【喜马拉雅】增加输出、优化判断
1 parent 1fde094 commit 79f8407

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

‎ximalaya/ximalaya.js‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,14 +116,17 @@ function getacc() {
116116
function showmsg() {
117117
let subTitle = ''
118118
let detail = ''
119-
119+
console.log(signinfo)
120120
if (signinfo.info.isTickedToday == false) {
121121
if (signinfo.sign.data.status == 0) {
122122
subTitle = '签到: 成功'
123123
detail = `当前连签: ${signinfo.info.continuousDays + 1}天, 积分: ${signinfo.acc.data.score}(+${signinfo.info.awardAmount})`
124-
} else {
124+
} else if (signinfo.sign.data.msg != undefined) {
125125
subTitle = '签到: 失败'
126126
detail = `说明: ${signinfo.sign.data.msg}`
127+
} else {
128+
subTitle = '签到: 失败'
129+
detail = `说明: Cookie失效`
127130
}
128131
} else {
129132
subTitle = `签到: 重复`

0 commit comments

Comments
 (0)