Skip to content

Commit

Permalink
更新[苏宁易购]: 修复部分场景报错问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chavyleung committed May 6, 2020
1 parent 138b023 commit 533fd6c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion suning/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# 苏宁易购 (Beta)
# 苏宁易购

> 代码已同时兼容 Surge & QuanX, 使用同一份签到脚本即可
Expand All @@ -8,6 +8,8 @@
> 2020.3.16 修复部分机型的`天天红包`就算 Cookie 获取成功也会签到失败问题
> 2020.5.7 修复部分场景下报`d.obj.couponRuleName`问题
## 配置 (Surge)

```properties
Expand Down
4 changes: 3 additions & 1 deletion suning/suning.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,9 @@ function showmsg() {
if (signinfo.gameinfo.data.resultCode == 0000) {
moreDetail += moreDetail == '' ? '' : '\n'
moreDetail += '\n💰 天天低价: '
for (d of signinfo.gameinfo.data.result.datas) moreDetail += `\n${d.obj.couponRuleName} (${d.obj.remainValue}元)`
for (d of signinfo.gameinfo.data.result.datas)
if (d.obj) moreDetail += `\n${d.obj.couponRuleName} (${d.obj.remainValue}元)`
else moreDetail += `\n${d.basePrizeEntity.prizeName} (${d.basePrizeEntity.prizeRules})`
} else {
chavy.log(`❌ ${cookieName} showmsg - 天天低价 - gameinfo: ${JSON.stringify(signinfo.gameinfo)}`)
}
Expand Down

0 comments on commit 533fd6c

Please sign in to comment.