|
|
@@ -880,6 +880,18 @@ function handleGoodsInfo() {
|
|
|
*/
|
|
|
let artInfo = rspData.data.info;
|
|
|
if (isConsignmentCaptureEnabled()) {
|
|
|
+ let oldArtId = magicJS.data.read(WuBianConstKey.ConsignmentArtId, null);
|
|
|
+ if (oldArtId != artInfo.artId) {
|
|
|
+ if (typeof paymentInfo.saleMaxPrice == 'number') {
|
|
|
+ magicJS.data.write(WuBianConstKey.ConsignmentArtPrice, paymentInfo.saleMaxPrice);
|
|
|
+ } else {
|
|
|
+ if (paymentInfo.price > 0) {
|
|
|
+ magicJS.data.write(WuBianConstKey.ConsignmentArtPrice, paymentInfo.price);
|
|
|
+ } else {
|
|
|
+ magicJS.data.write(WuBianConstKey.ConsignmentArtPrice, 9999);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
magicJS.data.write(WuBianConstKey.ConsignmentArtId, artInfo.artId);
|
|
|
magicJS.data.write(WuBianConstKey.ConsignmentArtName, artInfo.title);
|
|
|
magicJS.notification.appendNotifyInfo(`🎉[${artInfo.title}]一键寄售数据采集成功!`);
|
|
|
@@ -1040,11 +1052,17 @@ function handleFirstArtInfo() {
|
|
|
num: payInfo.limited,
|
|
|
});
|
|
|
magicJS.data.write(WuBianConstKey.FirstGoodsId, artInfo.artId);
|
|
|
+ magicJS.data.write(WuBianConstKey.FirstGoodsName, artInfo.title);
|
|
|
magicJS.notification.appendNotifyInfo(`🎉产品[${artInfo.title}]首发数据采集成功!`);
|
|
|
}
|
|
|
} else {
|
|
|
if (isFastBuyCaptureEnabled()) {
|
|
|
+ let oldArtId = magicJS.data.read(WuBianConstKey.FastBuyArtId, null);
|
|
|
+ if (oldArtId != artInfo.artId) {
|
|
|
+ magicJS.data.write(WuBianConstKey.FastBuyArtPrice, artInfo.price || 1);
|
|
|
+ }
|
|
|
magicJS.data.write(WuBianConstKey.FastBuyArtId, artInfo.artId);
|
|
|
+ magicJS.data.write(WuBianConstKey.FastBuyArtName, artInfo.title);
|
|
|
magicJS.data.write(WuBianConstKey.FastBuyArtInfo, artInfo);
|
|
|
magicJS.notification.appendNotifyInfo(`🎉产品[${artInfo.title}]快捷购买数据采集成功!`);
|
|
|
}
|