shawenguan há 1 ano atrás
pai
commit
b73613b679
2 ficheiros alterados com 531 adições e 0 exclusões
  1. 512 0
      Scripts/wubian/wubianFastGrab.js
  2. 19 0
      Scripts/wubian/wubianHelper.js

Diff do ficheiro suprimidas por serem muito extensas
+ 512 - 0
Scripts/wubian/wubianFastGrab.js


+ 19 - 0
Scripts/wubian/wubianHelper.js

@@ -19,6 +19,7 @@ const WuBianConstKey = {
     UserInfo: 'WubianUserInfo',
     Token: 'WubianProToken',
     TenantId: 'WubianTenantId',
+    AllMarketGroupListData: 'WubianAllMarketGroupListData',
 
     ActivityListData: 'WubianActivityListData',
     ActivityGoodsList: 'WubianActivityGoodsList',
@@ -153,6 +154,7 @@ function checkHandleRequest() {
                 break;
             case '/vmf/app/market/groupList':
                 // 市场产品寄售列表信息
+                hadnleMarketGroupList();
                 break;
             case '/vmf/app/market/saleRecord':
                 // 市场最近成交记录
@@ -366,6 +368,23 @@ function handleNoticeList() {
     magicJS.data.write(WuBianConstKey.TenantId, tenantId);
 }
 
+function hadnleMarketGroupList() {
+    let rspData = getResponsePlainData();
+    if (!rspData) {
+        return;
+    }
+    if (rspData.code != 200) {
+        return;
+    }
+    let dataDict = magicJS.data.read(WuBianConstKey.AllMarketGroupListData, {});
+    let list = rspData.data?.list || [];
+    for (let i = 0; i < list.length; ++i) {
+        let item = list[i];
+        dataDict[item.artId] = item;
+    }
+    magicJS.data.write(WuBianConstKey.AllMarketGroupListData, dataDict);
+}
+
 function handleActivityList() {
     let rspData = getResponsePlainData();
     if (!rspData) {

Alguns ficheiros não foram mostrados porque muitos ficheiros mudaram neste diff