Przeglądaj źródła

自动调价价格

shish 5 lat temu
rodzic
commit
7c520c44ec
1 zmienionych plików z 3 dodań i 0 usunięć
  1. 3 0
      biz-ghs/product/classes/ProductClass.php

+ 3 - 0
biz-ghs/product/classes/ProductClass.php

@@ -131,6 +131,9 @@ class ProductClass extends BaseClass
             $smallPrice = bcdiv($price, $ratio, 2);
             $list[$k]['smallPrice'] = $smallPrice;
 
+            //自动调价的价格
+            $list[$k]['autoPrice'] = bcadd($v['cost'], $v['addPrice'], 2);
+
         }
         return $list;
     }