dad ad ad Merge branch 'dev'

This commit is contained in:
wucongxing 2023-05-19 08:49:15 +08:00
commit 44e4e48ded
2 changed files with 8 additions and 1 deletions

View File

@ -134,7 +134,13 @@ abstract class Ca
$this->api_url . '/signature-server/api/open/signature/userSignConfig', $this->api_url . '/signature-server/api/open/signature/userSignConfig',
$option $option
); );
dump($response); dump($response);
if ($response['result_code'] == "1104"){
// 用户标识已经存在,请检查!
return true;
}
return true; return true;
} catch (GuzzleException $e) { } catch (GuzzleException $e) {
throw new BusinessException($e->getMessage()); throw new BusinessException($e->getMessage());

View File

@ -192,13 +192,14 @@ class Prescription
"json" => $arg "json" => $arg
]; ];
Log::getInstance()->info("处方平台上报数据:" . json_encode($option,JSON_UNESCAPED_UNICODE));
try { try {
$response = $this->httpRequest($this->api_url . $this->version . '/preOrder/receivePreOrder', $option); $response = $this->httpRequest($this->api_url . $this->version . '/preOrder/receivePreOrder', $option);
if (empty($response)){ if (empty($response)){
// 返回值错误为空 // 返回值错误为空
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR)); throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));
} }
Log::getInstance()->info("处方平台返回数据:" . json_encode($response,JSON_UNESCAPED_UNICODE));
return $response; return $response;
} catch (GuzzleException $e) { } catch (GuzzleException $e) {
throw new BusinessException($e->getMessage()); throw new BusinessException($e->getMessage());