shawenguan 2 年 前
コミット
9d85f6d6f0
1 ファイル変更3 行追加4 行削除
  1. 3 4
      Scripts/jhsh/jhshHelper.js

+ 3 - 4
Scripts/jhsh/jhshHelper.js

@@ -82,12 +82,12 @@ function checkHandleRequest() {
             let DeviceId = $request.headers['DeviceId'] || $request.headers['Deviceid'] || $request.headers['deviceid'];
             let MBCUserAgent = $request.headers['MBC-User-Agent'] || $request.headers['Mbc-user-agent'] || $request.headers['mbc-user-agent'];
             if(DeviceId && MBCUserAgent && body){
-                autoLoginInfo = {
+                let autoLoginInfo = {
                     "DeviceId": DeviceId,
                     "MBCUserAgent": MBCUserAgent,
                     "Body": body,
                 }
-                lk.setVal(jhshStoreKeyPrefix+'LoginInfo', autoLoginInfo);
+                lk.setVal(jhshStoreKeyPrefix+'LoginInfo', JSON.stringify(autoLoginInfo));
                 lk.log(' 建行生活登录数据写入成功');
             }
         }
@@ -95,7 +95,7 @@ function checkHandleRequest() {
 }
 
 async function all() {
-    await getLatestVersion(); // 获取版本信息
+    // await getLatestVersion(); // 获取版本信息
     const signActInfoStr = lk.getVal(jhshStoreKeyPrefix+'SignActInfo');
     const signActInfoArr = signActInfoStr ? signActInfoStr.split('|') : [];
     const loginInfoStr = lk.getVal(jhshStoreKeyPrefix+'LoginInfo');
@@ -289,7 +289,6 @@ async function getLatestVersion() {
     return new Promise(resolve => {
         lk.get(options, async (err, resp, data) => {
             try {
-                lk.log(data);
                 err && lk.log(err);
                 if (data) {
                     try {