init
This commit is contained in:
@@ -116,11 +116,9 @@ public class CurrentUserManager {
|
||||
vo.setAlreadyAuthNum(userAuth.getAlreadyAuthNum());
|
||||
List<UserPictures> userPictures = userPicturesService.listByUserIdAuditingAndSuccess(user.getId());
|
||||
vo.setUserPicturesList(BeanConvertUtil.convertListTo(userPictures, UserPicturesDTO::new));
|
||||
UserVip userVip = userVipService.getByUserVipMaster(userId);
|
||||
if(userVip != null){
|
||||
vo.setOpenVip(true);
|
||||
vo.setVipType(userVip.getVipType());
|
||||
vo.setVipTimeout(userVip.getVipTimeout());
|
||||
if(user.getOpenVip() != null){
|
||||
vo.setOpenVip(user.getOpenVip());
|
||||
// vo.setVipType();
|
||||
}
|
||||
UserExtend userExtend = userExtendService.getByUserId(userId);
|
||||
vo.setIncomeCoin(userExtend.getIncomeCoin());
|
||||
|
||||
@@ -75,8 +75,7 @@ public class ImManager {
|
||||
throw new ServiceException("不能给自己发送哦!");
|
||||
}
|
||||
// 判断VIP 只有VIP才可以发送消息
|
||||
UserVip userVip = userVipService.getByUserVipMaster(fromUserId);
|
||||
if(userVip == null){
|
||||
if(!fromUser.getOpenVip()){
|
||||
throw new ServiceException(ErrorEnum.VIP_AUTH);
|
||||
}
|
||||
// 检查拉黑
|
||||
|
||||
Reference in New Issue
Block a user