shawenguan vor 1 Jahr
Ursprung
Commit
8562388b09
1 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen
  1. 7 7
      Scripts/hbcpre/hbcpreHelper.js

+ 7 - 7
Scripts/hbcpre/hbcpreHelper.js

@@ -135,7 +135,7 @@ function getQueryPlainData(){
     }
     try {
         let baseConfig = getBaseConfig();
-        let jsonStr = decryptAES(params.data.trim(), baseConfig.k, baseConfig.v);
+        let jsonStr = decryptAES(decodeURIComponent(params.data).trim(), baseConfig.k, baseConfig.v);
         return JSON.parse(jsonStr);
     } catch (err) {
         magicJS.logger.error(err);
@@ -194,13 +194,13 @@ function handleLablelist() {
         message: '获取成功',
         data: [
             {
+                lable: '全部',
+                weight: 100,
+            },
+            {
                 lable: '我的关注',
                 weight: 1,
             },
-            {
-                lable: '全部',
-                weight: 100,
-            }
         ]
     };
     const baseConfig = getBaseConfig();
@@ -261,8 +261,8 @@ function handleNewpacklistDetail(){
     }
     let itemList = rspData.data;
     for(let i = 0; i < itemList.length; i++){
-        itemList[i].lock_uid = 0;
-        itemList[i].lock_time = '0';
+        itemList[i].lock_uid = null;
+        itemList[i].lock_time = null;
     }
 
     const baseConfig = getBaseConfig();