Browse Source

引入token

reloadnike 2 years ago
parent
commit
8d1df8a2d7
1 changed files with 4 additions and 5 deletions
  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;
     }
 
-}
+}