From 6e90c52cb87df6023fec146b2c35a3bc0f6ce7f7 Mon Sep 17 00:00:00 2001 From: haomingming Date: Tue, 2 Dec 2025 16:25:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20=E5=A4=84=E6=96=B9?= =?UTF-8?q?=E5=B9=B3=E5=8F=B0=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/OrderPrescriptionService.php | 2 +- config/config.php | 4 +++- extend/Prescription/Prescription.php | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/Services/OrderPrescriptionService.php b/app/Services/OrderPrescriptionService.php index 7b325cf..c9ca983 100644 --- a/app/Services/OrderPrescriptionService.php +++ b/app/Services/OrderPrescriptionService.php @@ -394,7 +394,7 @@ class OrderPrescriptionService extends BaseService $arg = array(); // $arg['terminalCode'] = "ZD-10003"; - $arg['terminalCode'] = "ZD-10199"; + $arg['terminalCode'] = config('prescription_platform.terminal_code'); $arg['orderNo'] = $order_product['order_product_no']; // 订单编号 $arg['transactNo'] = $order_product['escrow_trade_no']; // 流水单号 $arg['payDate'] = $order_product['pay_time']; // 支付时间 diff --git a/config/config.php b/config/config.php index 9fb07ba..6497f4a 100644 --- a/config/config.php +++ b/config/config.php @@ -113,7 +113,9 @@ return [ "client_id" => env('PRE_PLAT_CLIENT_ID', 'ZD-004'), "client_secret" => env('PRE_PLAT_CLIENT_SECRET', '0baa5927164710b9f800bf33546b6da3'), "api_url" => env('PRE_PLAT_APP_URL', 'http://49.233.3.200:6304/api/thridapi/'), - "pharmacy_code" => env('PRE_PLAT_PHARMACY_CODE', 'ZD-10003'), // 药店编码 + "pharmacy_code" => env('PRE_PLAT_PHARMACY_CODE', 'ZD-10198'), // 药店编码 + "zhongduan_code" => env('PRE_PLAT_ZHONGDUAN_CODE', 'ZD-10199'), // 终端编码 + "terminal_code" => env('PRE_PLAT_TERMINAL_CODE', 'ZD-10199'), // 机构编码 ], 'regulatory_platform' => [ // 四川省互联网医疗服务监管平台 "client_id" => env('REG_PLAT_CLIENT_ID', '09b117f8d1eb4dbfbf565447205ea60f'), diff --git a/extend/Prescription/Prescription.php b/extend/Prescription/Prescription.php index 7f0f493..b041275 100644 --- a/extend/Prescription/Prescription.php +++ b/extend/Prescription/Prescription.php @@ -226,9 +226,10 @@ class Prescription */ public function getPrescription(string $order_product_no,string $prescription_code): array { + $terminal_code = config('prescription_platform.terminal_code'); $option = [ "json" => [ - "terminalCode" => "ZD-10003", + "terminalCode" => $terminal_code, "orderNo" => $order_product_no, "prescriptionNo" => $prescription_code, ]