From bba9574ef22497c9f492a119aa81ae7e2ff83cec Mon Sep 17 00:00:00 2001 From: From-wh Date: Mon, 26 Oct 2026 16:32:06 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=A7=BB=E5=8A=A8=E7=AB=AF=E5=8F=91?= =?UTF-8?q?=E7=A5=A8):=20=E5=BC=80=E7=A5=A8=E8=AF=A6=E6=83=85=E5=95=86?= =?UTF-8?q?=E5=93=81=E6=8C=89=E6=9C=89=E6=95=88=E6=80=81=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 合成 cartInfo 未带 is_valid,orderGoods 组件按无效商品渲染: 整行半透明(op)、图片与价格置灰(gray),并可能附加不支持配送提示。 开票仅针对已支付订单,固定输出 is_valid=true --- backend/app/services/order/OrderInvoiceServices.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/app/services/order/OrderInvoiceServices.php b/backend/app/services/order/OrderInvoiceServices.php index 06be7a44d..ae30503bf 100644 --- a/backend/app/services/order/OrderInvoiceServices.php +++ b/backend/app/services/order/OrderInvoiceServices.php @@ -174,6 +174,8 @@ class OrderInvoiceServices extends BaseService $cartInfo[] = [ 'cart_num' => $product['cart_num'] ?? 1, 'truePrice' => $product['true_price'] ?? 0, + // 开票仅针对已支付订单,商品按有效态展示(is_valid 缺省会被组件置灰半透明) + 'is_valid' => true, 'productInfo' => [ 'image' => $product['image'] ?? '', 'store_name' => $product['store_name'] ?? '',