|
|
@@ -618,6 +618,8 @@ class UserController extends BaseController {
|
|
|
// 新会员的本地汇率
|
|
|
$country = Countries::getById($countryId);
|
|
|
$currencyRate = CurrencyConversions::getToUSDRate($country['LOCAL_CURRENCY_ID']);
|
|
|
+ // 新会员币种
|
|
|
+ $currency = Currency::getById($country['LOCAL_CURRENCY_ID']);
|
|
|
|
|
|
// 会员账户
|
|
|
$userBalance = [
|
|
|
@@ -628,7 +630,7 @@ class UserController extends BaseController {
|
|
|
if ($userCash) {
|
|
|
$userBalance['cash'] = $userCash['CASH'];
|
|
|
$userBalance['localCash'] = Tool::convertAmount($userCash['CASH'], $decUserCurrencyRate, $currencyRate);
|
|
|
- $userBalance['coin'] = $country['CODE'];
|
|
|
+ $userBalance['coin'] = $currency['CODE'] ?? '';
|
|
|
}
|
|
|
// 行政区划
|
|
|
$region = Region::getByCountryId($countryId);
|