shawenguan 2 лет назад
Родитель
Сommit
e41b4b7033
1 измененных файлов с 3 добавлено и 2 удалено
  1. 3 2
      Scripts/gandart/gandartHelper.js

+ 3 - 2
Scripts/gandart/gandartHelper.js

@@ -361,7 +361,7 @@ async function refreshLstOnSale(castingId, price) {
                         lk.appendNotifyInfo(`❌获取寄售列表失败,请稍后再试`);
                     } else {
                         let ret = JSON.parse(data);
-                        let minPrice = 9999999;
+                        let minPrice = 99999;
                         if (ret.success) {
                             let obj = ret.obj;
                             let lst = obj.list;
@@ -377,9 +377,10 @@ async function refreshLstOnSale(castingId, price) {
                                 }
                             }
                             if (retItemLst.length > 0) {
-                                lk.log(`无匹配的价格(<=${price}),当前[${collectionName}]最低价:${minPrice}`);
                                 const one = retItemLst[0];
                                 lk.appendNotifyInfo(`🎉成功匹配产品[${one.collectionName}#${one.viewSort}](<=${price}),数量: ${retItemLst.length},最低价格:${one.resalePrice}`);
+                            } else {
+                                lk.log(`无匹配的价格(<=${price}),当前[${collectionName}]最低价:${minPrice}`);
                             }
                         } else {
                             lk.execFail();