支付用户信息 地区问题 去除sysOrigin限制

This commit is contained in:
tianfeng 2026-05-28 15:13:37 +08:00
parent 9bdce9a98c
commit 0a48c9296d

View File

@ -67,18 +67,13 @@ public class UserProfileAndCountryQueryExe {
userRegionClient.getRegionId(userProfile.getId())
);
if (Objects.equals(cmd.getSysOrigin(), SysOriginPlatformEnum.ATYOU.name())) {
ResponseAssert.isTrue(CommonErrorCode.NOT_SUPPORTED_REGION, StringUtils.isNotBlank(regionId));
ResponseAssert.isTrue(CommonErrorCode.NOT_SUPPORTED_REGION, StringUtils.isNotBlank(regionId));
List<RegionRelationDTO> regionRelationList = getRegionRelationList(userProfile, regionId);
ResponseAssert.notEmpty(CommonErrorCode.NOT_SUPPORTED_REGION, regionRelationList);
List<RegionRelationDTO> regionRelationList = getRegionRelationList(userProfile, regionId);
ResponseAssert.notEmpty(CommonErrorCode.NOT_SUPPORTED_REGION, regionRelationList);
payCountryList = getPayCountryList(regionRelationList);
ResponseAssert.notEmpty(CommonErrorCode.NOT_SUPPORTED_REGION, payCountryList);
} else {
payCountryList = payCountryService.listAllShelf();
}
payCountryList = getPayCountryList(regionRelationList);
ResponseAssert.notEmpty(CommonErrorCode.NOT_SUPPORTED_REGION, payCountryList);
Map<Long, SysCountryCodeDTO> mapCountryCode = getMapCountryCode(payCountryList);
ResponseAssert.notEmpty(CommonErrorCode.NOT_SUPPORTED_REGION, mapCountryCode);