Commit 646c9599 authored by hangjun83's avatar hangjun83

openapi 震坤行

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