shawenguan 1 год назад
Родитель
Сommit
7bd3c93588
3 измененных файлов с 381 добавлено и 1 удалено
  1. 368 0
      Scripts/wubian/wubianConsignment.js
  2. 7 0
      Scripts/wubian/wubianHelper.js
  3. 6 1
      Scripts/wubian/wubianNotice.js

Разница между файлами не показана из-за своего большого размера
+ 368 - 0
Scripts/wubian/wubianConsignment.js


+ 7 - 0
Scripts/wubian/wubianHelper.js

@@ -632,6 +632,13 @@ function handleGoodsInfo() {
     let artInfo = rspData.data.info;
     let authorInfo = rspData.data.author;
     let paymentInfo = rspData.data.paymentInfo;
+    if (typeof paymentInfo.saleMinPrice == 'string' && paymentInfo.saleMinPrice.length == 0) {
+        paymentInfo.saleMinPrice = 1;
+    }
+    if (typeof paymentInfo.saleMaxPrice == 'string' && paymentInfo.saleMaxPrice.length == 0) {
+        paymentInfo.saleMaxPrice = 99999;
+    }
+
     let buttons = rspData.data.button;
     if (buttons[0].disable == 1) {
         // let map = [

+ 6 - 1
Scripts/wubian/wubianNotice.js

@@ -94,8 +94,13 @@ function updateHeaders() {
     gCommonHeaders['cookie'] = `token=${gToken}`;
 }
 
-async function tryNewNotice() {
+function getTenantId() {
     let tenantId = magicJS.data.read(WuBianConstKey.TenantId, '238bw8l9n5');
+    return tenantId;
+}
+
+async function tryNewNotice() {
+    let tenantId = getTenantId();
     let retData = await getNoticeListByCategory(1, 1, 20, tenantId);
     if (retData && retData.code == 200) {
         let nowTime = Date.now();

Некоторые файлы не были показаны из-за большого количества измененных файлов