Commit 646c9599 authored by hangjun83's avatar hangjun83

openapi 震坤行

parent a38c05c0
...@@ -36,18 +36,14 @@ class BjsApiService extends PlatformAbstractService ...@@ -36,18 +36,14 @@ class BjsApiService extends PlatformAbstractService
{ {
try{ try{
if($this->checkPlatformStatus()){ if($this->checkPlatformStatus()){
/*$params = []; $params = [];
$params['CASNumber'] = $this->mergeApiMetaData($product);*/ $params['CASNumber'] = $this->mergeApiMetaData($product);
$uri = $this->platformInfo['platform_url'].'/api/BJS/GetStockPriceDataThree?CASNumber='.$this->mergeApiMetaData($product); $uri = $this->platformInfo['platform_url'].'/api/BJS/GetStockPriceDataThree';
$response = $this->getPostClient($uri,$params,null,[
$response = $this->clientRequest('get', 'Client_id' => $this->platformInfo['platform_params']['Client_id'],
$uri,[ 'Client_secret' => $this->platformInfo['platform_params']['Client_secret']
'auth' => [ ]);
'Client_id' => $this->platformInfo['platform_params']['Client_id'],
'Client_secret' => $this->platformInfo['platform_params']['Client_secret']
]
]);
return $this->apiResponse($response); return $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