国家修改逻辑去除
This commit is contained in:
parent
ea49098adf
commit
e44caee9c5
@ -68,13 +68,6 @@ public class UpdateUserProfileCmdExe {
|
||||
userProfileGateway.removeCacheAll(cmd.requiredReqUserId());
|
||||
UserProfile userProfile = userProfileGateway.getByUserId(cmd.requiredReqUserId());
|
||||
ResponseAssert.notNull(UserErrorCode.USER_INFO_NOT_FOUND, userProfile);
|
||||
if (cmd.getCountryId() != null && cmd.getCountryId() > 0) {
|
||||
// 更改国家 查询redis是否修改过
|
||||
String isUpdateCountry = redisService.getString("IS_UPDATE_COUNTRY:" + cmd.requiredReqUserId());
|
||||
if (StringUtils.isNotBlank(isUpdateCountry) && "1".equals(isUpdateCountry)) {
|
||||
return userProfileAppConvertor.toUserProfileDTO(userProfile);
|
||||
}
|
||||
}
|
||||
if (StringUtils.isNotBlank(cmd.getUserAvatar())) {
|
||||
cmd.setUserAvatar(ossServiceClient.processImgSaveAsCompressZoom(cmd.getUserAvatar(),
|
||||
ImageSizeConst.COVER_HEIGHT).getBody()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user