Commit 8db85e62 authored by hangjun83's avatar hangjun83

乐妍

parent 0d6a6b7b
......@@ -64,17 +64,8 @@ class LeyanApiService extends PlatformAbstractService
public function getToken(){
try{
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',
$this->platformInfo['platform_url'].'/ProductDate/getToken',
[
'headers' => $tokenParams
]
$this->platformInfo['platform_url'].'/ProductDate/getToken?username='.$this->platformInfo['platform_params']['username'].'&password='.$this->platformInfo['platform_params']['password'],
);
$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