Skip to content

Commit 1cff77a

Browse files
committed
更新[喜马拉雅]: 兼容浏览发现页无法完成情况
1 parent dcb2390 commit 1cff77a

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎ximalaya/README.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@
88
99
> 2020.3.9 增加自动执行每日`浏览发现页`任务 (更新脚本即可, 无需重新获取 cookike)
1010
11+
> 2020.3.12 `浏览发现页`任务好像无法领取积分 (哪怕是在手机上手工浏览发现页) (脚本先兼容这个问题, 后续视情况去除)
12+
1113
## 配置 (Surge)
1214

1315
```properties

‎ximalaya/ximalaya.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ function showmsg() {
128128
}
129129

130130
if (signinfo.browseapp) {
131-
if (signinfo.browseapp.ret == 0) {
131+
if (signinfo.browseapp.ret == 0 && signinfo.browseapp.data && signinfo.browseapp.data.awards) {
132132
if (signinfo.browseapp.data.awards) subTitle += `, 每日浏览: 成功 (${signinfo.browseapp.data.awards})`
133133
else subTitle += ', 每日浏览: 重复'
134134
} else {

0 commit comments

Comments
 (0)