|
|
@@ -120,14 +120,15 @@ async function tryCloseSale() {
|
|
|
for (let i = 0; i < collectList.length; ++i) {
|
|
|
let goodsItem = collectList[i];
|
|
|
magicJS.logger.info(`[${goodsItem.title}#${goodsItem.ver}]¥${goodsItem.price}寄售单状态:${goodsItem.status}`);
|
|
|
- // if (goodsItem.status == -1) {//锁定中
|
|
|
- // continue;
|
|
|
+ // if (goodsItem.status == -1) {//寄售中
|
|
|
// }
|
|
|
- if (goodsItem.status == -2) {//寄售中
|
|
|
- }
|
|
|
if (goodsItem.title.indexOf(name) > -1) {
|
|
|
let retGoodsDetail = await getMarketGoodsInfo(goodsItem.goodsId, 1);
|
|
|
let goodsBaseInfo = retGoodsDetail.data?.info;
|
|
|
+ if (goodsBaseInfo && goodsBaseInfo.lock) {
|
|
|
+ magicJS.notification.appendNotifyInfo(`[${goodsItem.title}#${goodsItem.ver}]¥${goodsItem.price}锁定中,无法取消寄售!`);
|
|
|
+ continue;
|
|
|
+ }
|
|
|
let retCancelOpt = await cancelConsignmentOrder(goodsItem.artId, goodsItem.goodsId);
|
|
|
if (retCancelOpt && retCancelOpt.code == 200) {
|
|
|
magicJS.notification.appendNotifyInfo(`[${goodsItem.title}#${goodsItem.ver}]¥${goodsItem.price}寄售单取消成功!`);
|