Skip to content

Commit d8b4b0b

Browse files
authored
Update suning.js
修复天天低价通知显示问题
1 parent dde1bcc commit d8b4b0b

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

suning/suning.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -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)