1.优化
Showing
2 changed files
with
7 additions
and
0 deletions
... | @@ -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 | } | ... | ... |
-
Please register or sign in to post a comment