Skip to content

Commit cc8d2a2

Browse files
authored
Merge pull request chavyleung#179 from QQ515237330/patch-1
Update suning.js
2 parents d1bca34 + d8b4b0b commit cc8d2a2

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

‎suning/suning.js‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ function showmsg() {
199199
detail += myinfo.showLabel
200200
}
201201
if (signinfo.signapp.data.prizeLists) {
202-
detail += `, 说明: 还有${signinfo.signapp.data.remainingPoint}云钻待领取`
202+
detail += typeof(signinfo.signapp.data.remainingPoint) == "undefined" ? '' : `, 说明: 还有${signinfo.signapp.data.remainingPoint}云钻待领取`
203203
const prizeLists = signinfo.signapp.data.prizeLists
204204
const customerDays = signinfo.signapp.data.customerDays
205205
const prize = prizeLists[customerDays - 1]
@@ -262,8 +262,7 @@ function showmsg() {
262262
moreDetail += moreDetail == '' ? '' : '\n'
263263
moreDetail += '\n💰 天天低价: '
264264
for (d of signinfo.gameinfo.data.result.datas)
265-
if (d.obj) moreDetail += `\n${d.obj.couponRuleName} (${d.obj.remainValue}元)`
266-
else moreDetail += `\n${d.basePrizeEntity.prizeName} (${d.basePrizeEntity.prizeRules})`
265+
if (d.obj) moreDetail += d.obj.couponStatus === "2" ? `\n${d.obj.couponRuleName} (${d.obj.remainValue}元)\n过期时间:${d.obj.endTime}` : ''
267266
} else {
268267
chavy.log(`❌ ${cookieName} showmsg - 天天低价 - gameinfo: ${JSON.stringify(signinfo.gameinfo)}`)
269268
}

0 commit comments

Comments
 (0)