From 399ea877025e6d35bef65cfbe4b057b8cebf9b86 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Thu, 18 May 2023 17:07:17 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=B8=8A=E6=8A=A5=E5=A4=84?= =?UTF-8?q?=E6=96=B9=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/OrderPrescriptionService.php | 2 +- extend/Ca/Ca.php | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/app/Services/OrderPrescriptionService.php b/app/Services/OrderPrescriptionService.php index 05a9a53..124f0ca 100644 --- a/app/Services/OrderPrescriptionService.php +++ b/app/Services/OrderPrescriptionService.php @@ -390,7 +390,7 @@ class OrderPrescriptionService extends BaseService } $arg = array(); - $arg['terminalCode'] = "ZD-10003"; + $arg['terminalCode'] = config("prescription_platform.pharmacy_code",''); $arg['orderNo'] = $order_product['order_product_no']; // 订单编号 $arg['transactNo'] = $order_product['escrow_trade_no']; // 流水单号 $arg['payDate'] = $order_product['pay_time']; // 支付时间 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());