diff --git a/extend/Ca/Ca.php b/extend/Ca/Ca.php index 7802a6d..74476ad 100644 --- a/extend/Ca/Ca.php +++ b/extend/Ca/Ca.php @@ -134,7 +134,13 @@ abstract class Ca $this->api_url . '/signature-server/api/open/signature/userSignConfig', $option ); + dump($response); + if ($response['result_code'] == "1104"){ + // 用户标识已经存在,请检查! + return true; + } + return true; } catch (GuzzleException $e) { throw new BusinessException($e->getMessage()); diff --git a/extend/Prescription/Prescription.php b/extend/Prescription/Prescription.php index 91925e4..3b9fe2c 100644 --- a/extend/Prescription/Prescription.php +++ b/extend/Prescription/Prescription.php @@ -192,13 +192,14 @@ class Prescription "json" => $arg ]; + Log::getInstance()->info("处方平台上报数据:" . json_encode($option,JSON_UNESCAPED_UNICODE)); try { $response = $this->httpRequest($this->api_url . $this->version . '/preOrder/receivePreOrder', $option); if (empty($response)){ // 返回值错误为空 throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR)); } - + Log::getInstance()->info("处方平台返回数据:" . json_encode($response,JSON_UNESCAPED_UNICODE)); return $response; } catch (GuzzleException $e) { throw new BusinessException($e->getMessage());