wallet 处理region为null

This commit is contained in:
tianfeng 2025-08-15 12:10:52 +08:00
parent 5ff660ad04
commit d57109aa59

View File

@ -97,6 +97,9 @@ public class FreightShipGatewayImpl implements FreightShipGateway {
@Override
public int getFreightGoldToUsdRatio(Long userId) {
UserRegionDTO region = getUserRegionSetting(userId);
if (region == null) {
return 0;
}
int ratio = FreightGoldToUsdRatioEnum.getRatio(region.getSysOrigin());
/*
// 20230-40-02 刘占洋需求 阿拉伯和土耳其地区货运代理给用户充值的计算比例由现在的750调整到1200