| | |
| | | |
| | | @Autowired |
| | | private AccountService accountService; |
| | | @Autowired |
| | | private DistribService distribService; |
| | | |
| | | |
| | | |
| | |
| | | |
| | | |
| | | public int login(UserReq userReq) { |
| | | log.info("邀请人手机号:{}", userReq.getRegisterMobilePhone()); |
| | | int notCheckLoginFlag = userReq.getNotCheckLoginFlag(); |
| | | if(StringUtils.isBlank(userReq.getOpenId())){ |
| | | return -4; |
| | |
| | | userShareInfo.setRegisterTime(DateUtil.now()); |
| | | userShareInfoMapper.insertSelective(userShareInfo); |
| | | log.info("用户绑定成功,邀请人:{},被邀请人:{}", userShareInfo.getMobilePhone(), userShareInfo.getRegisterMobilePhone()); |
| | | |
| | | distribService.inviteAward(userShareInfo.getMobilePhone()); |
| | | }else{ |
| | | log.warn("邀请人:{}不是普通用户",userShareInfo.getMobilePhone()); |
| | | } |