删除锁定库存,新增同步处方平台kucun

This commit is contained in:
2023-03-15 19:16:41 +08:00
parent f2450cbcd5
commit d19a1271d3
8 changed files with 164 additions and 52 deletions
+6 -1
View File
@@ -114,7 +114,12 @@ class Prescription
];
try {
return $this->httpRequest($this->api_url . $this->version . '/pharmacy/pharmacyInventory', $option);
$response = $this->httpRequest($this->api_url . $this->version . '/pharmacy/pharmacyInventory', $option);
if (empty($response)){
// 返回值为空
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));
}
return $response;
} catch (GuzzleException $e) {
throw new BusinessException($e->getMessage());
}