Commit df8b22d5 df8b22d5223c01e3af3a6fe496ee3894743db79f by xianghan

1.优化

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