Parcourir la source

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

zhangl il y a 1 an
Parent
commit
5da7b6bbe7
1 fichiers modifiés avec 3 ajouts et 0 suppressions
  1. 3 0
      common/models/forms/OrderForm.php

+ 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'];