Commit 3481aa2f authored by hangjun83's avatar hangjun83

乐妍

parent 94e64ad0
......@@ -68,7 +68,12 @@ class LeyanApiService extends PlatformAbstractService
'username' => $this->platformInfo['platform_params']['username'],
'password' => $this->platformInfo['platform_params']['password']
];
$response = $this->getPostClient($this->platformInfo['platform_url'].'/ProductDate/getToken',$tokenParams);
$response = $this->getPostClient($this->platformInfo['platform_url'].'/ProductDate/getToken',[],null,
[
$tokenParams,
'content-type' => 'application/json;charset=utf-8'
]
);
$token = $this->apiResponse($response);
return $token['data'];
......
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