Commit 2ae7fe6d 2ae7fe6d8da95a11e533acc76253871d5105dfb8 by xianghan@topdraw.cn

1.添加checkBind接口

1 parent a3b8095c
...@@ -271,7 +271,7 @@ public class UserOperationController { ...@@ -271,7 +271,7 @@ public class UserOperationController {
271 public IResultInfo checkBind(BindBean bindBean) { 271 public IResultInfo checkBind(BindBean bindBean) {
272 Assert.notNull(bindBean.getId(), "id can not be null"); 272 Assert.notNull(bindBean.getId(), "id can not be null");
273 Map<String, Object> map = this.userTvOperationService.checkBind(bindBean); 273 Map<String, Object> map = this.userTvOperationService.checkBind(bindBean);
274 return ResultInfo.success(); 274 return ResultInfo.success(map);
275 } 275 }
276 276
277 /** 277 /**
......
...@@ -1245,6 +1245,12 @@ public class UserOperationServiceImpl implements UserOperationService { ...@@ -1245,6 +1245,12 @@ public class UserOperationServiceImpl implements UserOperationService {
1245 if (Objects.nonNull(userWeixinDTO.getId())) { 1245 if (Objects.nonNull(userWeixinDTO.getId())) {
1246 Long memberId = userWeixinDTO.getMemberId(); 1246 Long memberId = userWeixinDTO.getMemberId();
1247 MemberDTO memberDTO = this.memberService.findById(memberId); 1247 MemberDTO memberDTO = this.memberService.findById(memberId);
1248
1249 if (Objects.isNull(memberDTO.getId())) {
1250 log.error("param => UserTv id ==> [{}]", id);
1251 throw new EntityNotFoundException(MemberDTO.class, "id", "小程序账户对应的会员不存在");
1252 }
1253
1248 Long userIptvId = memberDTO.getUserIptvId(); 1254 Long userIptvId = memberDTO.getUserIptvId();
1249 if (Objects.nonNull(userIptvId)) { 1255 if (Objects.nonNull(userIptvId)) {
1250 map.put("isBind", 1); 1256 map.put("isBind", 1);
......