From 9645c42f4d6e0eebe9ffca2a452ce650b295c02c Mon Sep 17 00:00:00 2001 From: wisz2021 Date: Mon, 7 Jun 2021 15:06:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E4=B8=9C=E4=B8=9C?= =?UTF-8?q?=E8=B6=85=E5=B8=82=E8=93=9D=E5=B8=81=E5=85=91=E6=8D=A2=E4=BA=AC?= =?UTF-8?q?=E8=B1=86=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- jd_blueCoin.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/jd_blueCoin.js b/jd_blueCoin.js index aa26b888..bd11f186 100644 --- a/jd_blueCoin.js +++ b/jd_blueCoin.js @@ -162,11 +162,11 @@ async function PrizeIndex() { console.log(`\n\n温馨提示:需兑换商品的名称设置请尽量与其他商品有区分度,否则可能会兑换成其他类似商品\n\n`) let prizeId = '', i; for (let index = 0; index < prizeList.length; index ++) { - if (prizeList[index].title.indexOf(coinToBeans) > -1) { + if (prizeList[index].name.indexOf(coinToBeans) > -1) { prizeId = prizeList[index].prizeId; i = index; - $.title = prizeList[index].title; - $.blueCost = prizeList[index].blueCost; + $.title = prizeList[index].name; + $.blueCost = prizeList[index].cost; $.type = prizeList[index].type; $.beanType = prizeList[index].hasOwnProperty('beanType'); } @@ -192,8 +192,8 @@ async function PrizeIndex() { $.beanerr = `兑换失败,您目前蓝币${$.totalBlue}个,不足以兑换${$.title}所需的${$.blueCost}个`; } } else { - console.log(`奖品兑换列表[${coinToBeans}]已下架,请检查活动页面是否存在此商品,如存在请检查您的输入是否正确`); - $.beanerr = `奖品兑换列表[${coinToBeans}]已下架`; + console.log(`奖品兑换列表【${coinToBeans}】已下架,请检查活动页面是否存在此商品,如存在请检查您的输入是否正确`); + $.beanerr = `奖品兑换列表【${coinToBeans}】已下架`; } } }