reloadnike 2 年 前
コミット
8d1df8a2d7
1 ファイル変更4 行追加5 行削除
  1. 4 5
      App/Com/JdSdk.php

+ 4 - 5
App/Com/JdSdk.php

@@ -41,7 +41,8 @@ class JdSdk
     protected $password = '';
 
 
-    protected $access_token = "NIwoLn95BLs0ZdKLyawIiuFPM";
+    //protected $access_token = "NIwoLn95BLs0ZdKLyawIiuFPM";
+    protected $access_token = "";
 
     protected $timeout = 30;
     protected $connecttimeout = 30;
@@ -100,15 +101,13 @@ class JdSdk
             }
         }
 
-
+        $this->init_access_token();
     }
 
 
     function init_access_token()
     {
 
-        global $_W;
-
         /******************************************************* redis *********************************************************/
 
         $table__key = 'superdesk_jd_vop_' . 'sdk_access_token' . ':' . 17;
@@ -649,4 +648,4 @@ class JdSdk
         return $response;
     }
 
-}
+}