@@ -106,7 +106,7 @@ class Prescription
|
||||
),
|
||||
];
|
||||
|
||||
// Log::getInstance()->info("处方平台获取药品请求数据:" . json_encode($option,JSON_UNESCAPED_UNICODE));
|
||||
Log::getInstance()->info("处方平台获取药品请求数据:" . json_encode($option,JSON_UNESCAPED_UNICODE));
|
||||
try {
|
||||
$response = $this->httpRequest($this->api_url . $this->version . '/drug/syncDrugCatalogue', $option);
|
||||
if (empty($response['data'])){
|
||||
@@ -121,11 +121,11 @@ class Prescription
|
||||
|
||||
if (empty($response['data']['result'])){
|
||||
// 返回值为空
|
||||
// Log::getInstance()->error("处方平台获取药品返回result为空:" . json_encode($response,JSON_UNESCAPED_UNICODE));
|
||||
Log::getInstance()->error("处方平台获取药品返回result为空:" . json_encode($response,JSON_UNESCAPED_UNICODE));
|
||||
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));
|
||||
}
|
||||
|
||||
// Log::getInstance()->info("处方平台获取药品返回数据:" . json_encode($response,JSON_UNESCAPED_UNICODE));
|
||||
Log::getInstance()->info("处方平台获取药品返回数据:" . json_encode($response,JSON_UNESCAPED_UNICODE));
|
||||
return $response['data']['result'];
|
||||
} catch (GuzzleException $e) {
|
||||
Log::getInstance()->error("处方平台获取药品请求异常:" . $e->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user