|
|
@ -157,6 +157,7 @@ public class PlatformTeamAccountServiceImpl extends ServiceImpl<PlatformTeamAcco |
|
|
|
//TODO 团队信息待处理
|
|
|
|
//TODO 团队信息待处理
|
|
|
|
// data.put("teamId",platformTeamClassification.getId());
|
|
|
|
// data.put("teamId",platformTeamClassification.getId());
|
|
|
|
// data.put("teamName",teamName);
|
|
|
|
// data.put("teamName",teamName);
|
|
|
|
|
|
|
|
return R.ok().put("data",data); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
String randomNumber5 = cn.hutool.core.util.RandomUtil.randomNumbers(5); |
|
|
|
String randomNumber5 = cn.hutool.core.util.RandomUtil.randomNumbers(5); |
|
|
@ -185,14 +186,21 @@ public class PlatformTeamAccountServiceImpl extends ServiceImpl<PlatformTeamAcco |
|
|
|
userName = "个人" + randomNumber7; |
|
|
|
userName = "个人" + randomNumber7; |
|
|
|
break; |
|
|
|
break; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
//企业认证获取个人平台手机号进行绑定
|
|
|
|
|
|
|
|
UserAccount account = baseMapper.selectAccountByOpenId(appletCallbackReq.getOpenId(), 7); |
|
|
|
|
|
|
|
if (account != null) { |
|
|
|
|
|
|
|
appletCallbackReq.setPhone(account.getPhone()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
accountId = addUserInfo(userName, appletCallbackReq.getPlatformId(), appletCallbackReq.getOpenId(), appletCallbackReq.getPhone()); |
|
|
|
accountId = addUserInfo(userName, appletCallbackReq.getPlatformId(), appletCallbackReq.getOpenId(), appletCallbackReq.getPhone()); |
|
|
|
|
|
|
|
|
|
|
|
// 如果平台ID不是7,添加供应商/幼儿园信息和团队信息,默认添加个人端信息
|
|
|
|
// 如果平台ID不是7,添加供应商/幼儿园信息和团队信息,默认添加个人端信息
|
|
|
|
if (appletCallbackReq.getPlatformId() != 7) { |
|
|
|
if (appletCallbackReq.getPlatformId() != 7) { |
|
|
|
//添加个人端信息
|
|
|
|
//添加个人端信息,判断是否重复,为空添加
|
|
|
|
|
|
|
|
if (account == null){ |
|
|
|
String personalUserName = "个人" + randomNumber7; |
|
|
|
String personalUserName = "个人" + randomNumber7; |
|
|
|
addUserInfo(personalUserName, 7, appletCallbackReq.getOpenId(), appletCallbackReq.getPhone()); |
|
|
|
addUserInfo(personalUserName, 7, appletCallbackReq.getOpenId(), appletCallbackReq.getPhone()); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// 添加供应商/幼儿园信息
|
|
|
|
// 添加供应商/幼儿园信息
|
|
|
|
PlatformTeamAccount platformTeamAccount = new PlatformTeamAccount(); |
|
|
|
PlatformTeamAccount platformTeamAccount = new PlatformTeamAccount(); |
|
|
|