shawenguan 1 年之前
父節點
當前提交
e93026f3f8
共有 1 個文件被更改,包括 18 次插入0 次删除
  1. 18 0
      Scripts/wubian/wubianHelper.js

+ 18 - 0
Scripts/wubian/wubianHelper.js

@@ -23,6 +23,12 @@ const WuBianConstKey = {
     MarketAlbumListData: 'WubianMarketAlbumListData',
     AllMarketGroupListData: 'WubianAllMarketGroupListData',
 
+    AllUserSimpleInfo: 'WubianAllUserSimpleInfo',
+    ScoreRankDaily: 'WubianScoreRankDaily',
+
+    QueryOthersCollectUserName: 'WubianQueryOthersCollectUserName',
+    QueryOthersCollectHashId: 'WubianQueryOthersCollectHashId',
+
     ActivityListData: 'WubianActivityListData',
     ActivityGoodsList: 'WubianActivityGoodsList',
     ActivityTaskCaptureEnabled: 'WubianActivityTaskCaptureEnabled',
@@ -915,6 +921,18 @@ function handleGoodsInfo() {
             authorInfo.nickName = `${authorInfo.nickName}#改`;
         }
     }
+    let owner = data.owner;
+    if (owner) {
+        let userDataCache = magicJS.data.read(WuBianConstKey.AllUserSimpleInfo, {});
+        if (!userDataCache[owner.id]) {
+            userDataCache[owner.id] = {
+                nickName: owner.nickName,
+                hashId: owner.id,
+                address: owner.address,
+            };
+        }
+    }
+
     gRetBody = rspData;
 }