Procházet zdrojové kódy

【程序目录】修复活动购买问题

吴昊天 před 3 roky
rodič
revize
bd3e7ccb7b
1 změnil soubory, kde provedl 4 přidání a 0 odebrání
  1. 4 0
      crmeb/app/services/order/StoreCartServices.php

+ 4 - 0
crmeb/app/services/order/StoreCartServices.php

@@ -615,6 +615,8 @@ class StoreCartServices extends BaseServices
                     $item['truePrice'] = $truePrice;
                     $item['truePrice'] = $truePrice;
                     $item['vip_truePrice'] = $vip_truePrice;
                     $item['vip_truePrice'] = $vip_truePrice;
                     $item['price_type'] = $type;
                     $item['price_type'] = $type;
+                } else {
+                    $item['price_type'] = 'activity';
                 }
                 }
             } else {
             } else {
                 $item['costPrice'] = $item['productInfo']['cost'] ?? 0;
                 $item['costPrice'] = $item['productInfo']['cost'] ?? 0;
@@ -626,6 +628,8 @@ class StoreCartServices extends BaseServices
                     $item['truePrice'] = $truePrice;
                     $item['truePrice'] = $truePrice;
                     $item['vip_truePrice'] = $vip_truePrice;
                     $item['vip_truePrice'] = $vip_truePrice;
                     $item['price_type'] = $type;
                     $item['price_type'] = $type;
+                } else {
+                    $item['price_type'] = 'activity';
                 }
                 }
             }
             }
             if (isset($item['status']) && $item['status'] == 0) {
             if (isset($item['status']) && $item['status'] == 0) {