From 6e3970ca68d6a9a37fb6cbe6db370af476524034 Mon Sep 17 00:00:00 2001 From: lq Date: Tue, 21 Oct 2025 08:09:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=9F=8E=E8=AE=A2=E5=8D=95=E6=94=AF?= =?UTF-8?q?=E4=BB=98=E9=97=AE=E9=A2=98=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- member/modules/v1/controllers/ProductOrderController.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/member/modules/v1/controllers/ProductOrderController.php b/member/modules/v1/controllers/ProductOrderController.php index c269cea..807abad 100644 --- a/member/modules/v1/controllers/ProductOrderController.php +++ b/member/modules/v1/controllers/ProductOrderController.php @@ -219,10 +219,11 @@ class ProductOrderController extends BaseAppController } $count = count($granular['list']); } - - if ($prescription['category'] === 2) { - $ProductOrder['total_pay_price'] = $ProductOrder['trans_expenses']; - $ProductOrder['items_price'] = 0; + if ($ProductOrder['p_id'] !== 0) { + if ($prescription['category'] === 2) { + $ProductOrder['total_pay_price'] = $ProductOrder['trans_expenses']; + $ProductOrder['items_price'] = 0; + } } $ProductOrder['count'] = $count;