reloadnike hace 2 años
padre
commit
8d1df8a2d7
Se han modificado 1 ficheros con 4 adiciones y 5 borrados
  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;
     }
 
-}
+}