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