Commit df8b22d5 df8b22d5223c01e3af3a6fe496ee3894743db79f by xianghan

1.优化

1 parent 07a5bc8c
......@@ -575,6 +575,7 @@ public class UserOperationServiceImpl implements UserOperationService {
log.error("appletBind ==> platformAccount ==> [{}]",platformAccount);
throw new EntityNotFoundException(UserTvDTO.class,"id",GlobeExceptionMsg.IPTV_IS_NULL);
}
resources.setPlatformUserId(userTvDTO.getId());
UserWeixinDTO userWeixinDTO = null;
// 微信账户
......@@ -598,6 +599,11 @@ public class UserOperationServiceImpl implements UserOperationService {
}
MemberDTO memberDTO = this.findMemberById(memberId);
Long userIptvId = memberDTO.getUserIptvId();
if (Objects.nonNull(userIptvId))
throw new BadRequestException(GlobeExceptionMsg.ALREADY_BIND);
// 主账户会员
String code = memberDTO.getCode();
......
......@@ -46,4 +46,5 @@ public interface GlobeExceptionMsg {
String APP_ID_IS_NULL = "appId is null";
String OPEN_ID_IS_NULL = "openId is null";
String UNION_ID_IS_NULL = "unionId is null";
String ALREADY_BIND = "already bind";
}
......