From 73b874c72ad55eb9eef21c36160ac0de58f0189e Mon Sep 17 00:00:00 2001
From: quanwei <419654421@qq.com>
Date: Thu, 05 Feb 2026 10:30:43 +0800
Subject: [PATCH] 优化名片

---
 admin/app/common/service/delivery/ExpressService.php |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/admin/app/common/service/delivery/ExpressService.php b/admin/app/common/service/delivery/ExpressService.php
index 0691908..c877540 100644
--- a/admin/app/common/service/delivery/ExpressService.php
+++ b/admin/app/common/service/delivery/ExpressService.php
@@ -39,7 +39,7 @@
     {
         if ($this->cityId) {
             foreach ($this->productList as &$product) {
-                if($product['is_virtual'] == 1){
+                if($product['is_virtual'] == 1||$product['is_virtual'] == 3){
                     continue;
                 }
                 if($product['delivery_id'] == 0){
@@ -65,7 +65,7 @@
         $orderTotalPrice = helper::getArrayColumnSum($this->productList, 'total_price');
         foreach ($this->productList as &$product) {
             // 如果是虚拟物品,则为0
-            if($product['is_virtual'] == 1){
+            if($product['is_virtual'] == 1 || $product['is_virtual'] == 3){
                 $product['express_price'] = 0;
             }else if($product['delivery_id'] == 0){
                 // 包邮

--
Gitblit v1.9.2