新增获取处方平台订单数据

This commit is contained in:
2023-04-12 11:20:47 +08:00
parent 33078cf973
commit 6ce6ca28ea
6 changed files with 417 additions and 23 deletions
+11 -1
View File
@@ -226,7 +226,17 @@ class Prescription
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));
}
return $response;
if (empty($response['data'])){
// 返回值为空
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));
}
if (empty($response['data']['result'])){
// 返回值为空
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));
}
return $response['data']['result'];
} catch (GuzzleException $e) {
throw new BusinessException($e->getMessage());
}