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