Commit 8db85e62 authored by hangjun83's avatar hangjun83

乐妍

parent 0d6a6b7b
...@@ -64,17 +64,8 @@ class LeyanApiService extends PlatformAbstractService ...@@ -64,17 +64,8 @@ class LeyanApiService extends PlatformAbstractService
public function getToken(){ public function getToken(){
try{ try{
if($this->checkPlatformStatus()){ if($this->checkPlatformStatus()){
$tokenParams = [
'username' => $this->platformInfo['platform_params']['username'],
'password' => $this->platformInfo['platform_params']['password'],
'content-type' => 'application/json;charset=utf-8'
];
$response = $this->clientRequest('get', $response = $this->clientRequest('get',
$this->platformInfo['platform_url'].'/ProductDate/getToken', $this->platformInfo['platform_url'].'/ProductDate/getToken?username='.$this->platformInfo['platform_params']['username'].'&password='.$this->platformInfo['platform_params']['password'],
[
'headers' => $tokenParams
]
); );
$token = $this->apiResponse($response); $token = $this->apiResponse($response);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment