|
@@ -279,7 +279,7 @@ public class WxLoginService implements IWxLoginService {
|
|
|
* @param tel
|
|
|
* @return
|
|
|
*/
|
|
|
- public Boolean register_small(String openId, String unionId, String tel, String inviteCode) {
|
|
|
+ public Boolean register_small(String openId, String unionId, String tel, String inviteCode, String shareCode) {
|
|
|
User bo = new User();
|
|
|
bo.setOpenId(openId);
|
|
|
bo.setUnionId(unionId);
|
|
@@ -305,6 +305,9 @@ public class WxLoginService implements IWxLoginService {
|
|
|
bo.setInviteUserAccount(inviteCode);
|
|
|
}
|
|
|
}
|
|
|
+ if (Validator.isNotEmpty(shareCode)) {
|
|
|
+ bo.setShareCode(shareCode);
|
|
|
+ }
|
|
|
if (iUserService.save(bo)) {
|
|
|
iSmsService.sendPwdSms(bo.getTelphone(), pwd);
|
|
|
}
|
|
@@ -368,7 +371,7 @@ public class WxLoginService implements IWxLoginService {
|
|
|
}
|
|
|
}
|
|
|
if (user == null) {
|
|
|
- if (!register_small(openId, unionId, phoneNumber, loginBody.getInviteCode())) {
|
|
|
+ if (!register_small(openId, unionId, phoneNumber, loginBody.getInviteCode(),loginBody.getShareCode())) {
|
|
|
throw new CustomException("注册失败");
|
|
|
}
|
|
|
user = iUserService.getOne(new LambdaQueryWrapper<User>()
|