wallet 处理region为null
This commit is contained in:
parent
5ff660ad04
commit
d57109aa59
@ -97,6 +97,9 @@ public class FreightShipGatewayImpl implements FreightShipGateway {
|
|||||||
@Override
|
@Override
|
||||||
public int getFreightGoldToUsdRatio(Long userId) {
|
public int getFreightGoldToUsdRatio(Long userId) {
|
||||||
UserRegionDTO region = getUserRegionSetting(userId);
|
UserRegionDTO region = getUserRegionSetting(userId);
|
||||||
|
if (region == null) {
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
int ratio = FreightGoldToUsdRatioEnum.getRatio(region.getSysOrigin());
|
int ratio = FreightGoldToUsdRatioEnum.getRatio(region.getSysOrigin());
|
||||||
/*
|
/*
|
||||||
// 20230-40-02 刘占洋需求: 阿拉伯和土耳其地区,货运代理给用户充值的计算比例由现在的750调整到1200
|
// 20230-40-02 刘占洋需求: 阿拉伯和土耳其地区,货运代理给用户充值的计算比例由现在的750调整到1200
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user