Skip to content

Commit

Permalink
Merge pull request chavyleung#179 from QQ515237330/patch-1
Browse files Browse the repository at this point in the history
Update suning.js
  • Loading branch information
chavyleung authored Aug 5, 2020
2 parents d1bca34 + d8b4b0b commit cc8d2a2
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions suning/suning.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,7 @@ function showmsg() {
detail += myinfo.showLabel
}
if (signinfo.signapp.data.prizeLists) {
detail += `, 说明: 还有${signinfo.signapp.data.remainingPoint}云钻待领取`
detail += typeof(signinfo.signapp.data.remainingPoint) == "undefined" ? '' : `, 说明: 还有${signinfo.signapp.data.remainingPoint}云钻待领取`
const prizeLists = signinfo.signapp.data.prizeLists
const customerDays = signinfo.signapp.data.customerDays
const prize = prizeLists[customerDays - 1]
Expand Down Expand Up @@ -262,8 +262,7 @@ function showmsg() {
moreDetail += moreDetail == '' ? '' : '\n'
moreDetail += '\n💰 天天低价: '
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})`
if (d.obj) moreDetail += d.obj.couponStatus === "2" ? `\n${d.obj.couponRuleName} (${d.obj.remainValue}元)\n过期时间:${d.obj.endTime}` : ''
} else {
chavy.log(`❌ ${cookieName} showmsg - 天天低价 - gameinfo: ${JSON.stringify(signinfo.gameinfo)}`)
}
Expand Down

0 comments on commit cc8d2a2

Please sign in to comment.