From 488adc128985e8881eeee551f3877c148a505e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E7=90=A6?= Date: Thu, 30 Jul 2026 13:36:55 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E8=B0=83=E8=AF=95erp?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- platform/modules/v1/controllers/ErpController.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/platform/modules/v1/controllers/ErpController.php b/platform/modules/v1/controllers/ErpController.php index 80e4a7f..f35d46c 100644 --- a/platform/modules/v1/controllers/ErpController.php +++ b/platform/modules/v1/controllers/ErpController.php @@ -120,12 +120,12 @@ class ErpController extends Controller // 如果是商城处方订单 // 暂时默认使用11007诊所 - $erpData[$k]['userId'] = $defaultUserId; -// if ($v['is_online'] == 3) { -// $erpData[$k]['userId'] = $defaultUserId; -// } else { -// $erpData[$k]['userId'] = $v['store']['erp_id']; -// } +// $erpData[$k]['userId'] = $defaultUserId; + if ($v['is_online'] == 3 || $v['is_online'] == 2) { + $erpData[$k]['userId'] = $defaultUserId; + } else { + $erpData[$k]['userId'] = $v['store']['erp_id']; + } $erpData[$k]['orderStatus'] = $v['status']; $erpData[$k]['totalAmount'] = $v['total_pay_price']; // $erpData[$k]['deliveryAmount'] = $v['trans_expenses'];