Procházet zdrojové kódy

feat: NG-15: 新会员注册时增加国家与语言选项.

zhangl před 1 rokem
rodič
revize
4147955c6f
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      common/models/forms/OrderForm.php

+ 2 - 2
common/models/forms/OrderForm.php

@@ -862,12 +862,12 @@ class OrderForm extends Model
                 if($goods['STORE_NUMS']>0){
                     if ($goods['TYPE'] == 1 || $goods['TYPE'] == 2) {
                         $discount = $goodsType[$goods['TYPE']]['discount'];
-                        $realPrice = $goods['SELL_PRICE'] * $discount/100;
+                        $realPrice = $goodsNature['SELL_PRICE'] * $discount/100;
                         $realPv = $goods['PRICE_PV'] * $discount/100;
                         $realPriceStandard = $goods['SELL_PRICE_STANDARD'] * $discount/100;
                     } else {
                         $discount = $goods['SELL_DISCOUNT'];
-                        $realPrice = $goods['SELL_PRICE'] * $discount;
+                        $realPrice = $goodsNature['SELL_PRICE'] * $discount;
                         $realPv = $goods['PRICE_PV'] * $discount;
                         $realPriceStandard = $goods['SELL_PRICE_STANDARD'] * $discount;
                     }