shawenguan 2 лет назад
Родитель
Сommit
c4ed1f7ede
2 измененных файлов с 7 добавлено и 5 удалено
  1. 4 4
      BoxJsSub/JoJo_BoxJs.json
  2. 3 1
      Scripts/gandartHelper.js

+ 4 - 4
BoxJsSub/JoJo_BoxJs.json

@@ -76,15 +76,15 @@
                 {
                   "id": "lkGandartCastingId",
                   "name": "产品铸造品类ID",
-                  "val": "",
-                  "type": "text",
+                  "val": 0,
+                  "type": "number",
                   "desc": "产品铸造品类ID"
                 },
                 {
                   "id": "lkGandartTransactionRecordId",
                   "name": "产品记录ID",
-                  "val": "",
-                  "type": "text",
+                  "val": 0,
+                  "type": "number",
                   "desc": "产品记录ID(非编号)"
                 },
                 {

+ 3 - 1
Scripts/gandartHelper.js

@@ -23,6 +23,7 @@ const gandartTokenKey = 'lkGandartToken';
 const gardartCollectionNameKey = 'lkGandartCollectionName';
 const gardartCastingIdKey = 'lkGandartCastingId';
 const gardartLimitPriceKey = 'lkGandartLimitPrice';
+const gandartTransactionRecordIdKey = 'lkGandartTransactionRecordId';
 
 let gandartToken = lk.getVal(gandartTokenKey, '');
 
@@ -61,7 +62,7 @@ function getInfo() {
         }
         if(url.match(/\/market\/api\/v3\/resaleManage\/resale\/tradingMarket/)){
             lk.log(`开始获取Token`);
-            lk.log(JSON.stringify($request.headers));
+            // lk.log(JSON.stringify($request.headers));
             if ($request.headers['token']) {
                 let jwktoken = $request.headers['token'];
                 lk.setVal(gandartTokenKey, jwktoken);
@@ -77,6 +78,7 @@ function getInfo() {
             try {
                 data = JSON.parse(data);
                 if (data["success"]) {
+                    lk.log(JSON.stringify($request.headers));
                     let obj = data["obj"];
                     lk.setVal(gardartCollectionNameKey, obj["collectionName"]);
                     lk.setVal(gardartCastingIdKey, obj["castingId"]);