Эх сурвалжийг харах

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

zhangl 1 жил өмнө
parent
commit
5da7b6bbe7

+ 3 - 0
common/models/forms/OrderForm.php

@@ -860,6 +860,9 @@ class OrderForm extends Model
                     throw new Exception(Yii::t('app', 'productsDoesSoldOut'));
                 }
 
+                // 汇率
+                $this->exchangeRate = CurrencyConversions::getToUSDRate($goodsNature['LOCAL_CURRENCY_ID']);
+
                 if($goods['STORE_NUMS']>0){
                     if ($goods['TYPE'] == 1 || $goods['TYPE'] == 2) {
                         $discount = $goodsType[$goods['TYPE']]['discount'];