Commit 8fc1518a authored by hj's avatar hj

更新提交

parent d7ee39e1
...@@ -256,7 +256,7 @@ Compounds, ...@@ -256,7 +256,7 @@ Compounds,
public function getAuthHeader() public function getAuthHeader()
{ {
$auth = $this->dataEntriesService->getEntriesValues(6,'wuxi_api_auth'); $auth = $this->getPlatformDataEntries('wuxi_api_auth', 'data_values');
if(!$auth){ if(!$auth){
$response = $this->getPostClient($this->platformInfo['platform_url'].'/token/fetch', [ $response = $this->getPostClient($this->platformInfo['platform_url'].'/token/fetch', [
'username' => '790087059@qq.com', 'username' => '790087059@qq.com',
...@@ -273,7 +273,7 @@ Compounds, ...@@ -273,7 +273,7 @@ Compounds,
} }
return $result['data']; return $result['data'];
} }
return current($auth)['authorization']; return $auth['authorization'];
} }
protected function apiResponse($response) protected function 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