修改上报处方平台

This commit is contained in:
wucongxing 2023-05-19 08:49:01 +08:00
parent 399ea87702
commit a380159b1b
2 changed files with 3 additions and 2 deletions

View File

@ -390,7 +390,7 @@ class OrderPrescriptionService extends BaseService
} }
$arg = array(); $arg = array();
$arg['terminalCode'] = config("prescription_platform.pharmacy_code",''); $arg['terminalCode'] = "ZD-10003";
$arg['orderNo'] = $order_product['order_product_no']; // 订单编号 $arg['orderNo'] = $order_product['order_product_no']; // 订单编号
$arg['transactNo'] = $order_product['escrow_trade_no']; // 流水单号 $arg['transactNo'] = $order_product['escrow_trade_no']; // 流水单号
$arg['payDate'] = $order_product['pay_time']; // 支付时间 $arg['payDate'] = $order_product['pay_time']; // 支付时间

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());