|
@@ -49,12 +49,6 @@ public class RegisterServiceImpl implements RegisterService {
|
|
@Resource
|
|
@Resource
|
|
private RegisterMapper registerMapper;
|
|
private RegisterMapper registerMapper;
|
|
|
|
|
|
- /**
|
|
|
|
- * 短信模板
|
|
|
|
- */
|
|
|
|
- private String mailTxt = "欢迎成为采美普通机构用户,您的登录账号为:%s,初始密码为:%s,您可使用该账号密码登录采美365网和【采美采购商城】小程序。登录后可升级为会员机构,享受更多更好的服务。";
|
|
|
|
- private String memberMailTxt = "欢迎成为采美会员机构用户,您的登录账号为:%s,初始密码为:%s,您可使用该账号密码登录采美365网和【采美采购商城】小程序享受会员专属服务。";
|
|
|
|
-
|
|
|
|
/**
|
|
/**
|
|
* 普通机构入驻(注册)
|
|
* 普通机构入驻(注册)
|
|
*
|
|
*
|
|
@@ -543,26 +537,25 @@ public class RegisterServiceImpl implements RegisterService {
|
|
* 操作成功,推送短信给机构,获取账号密码。
|
|
* 操作成功,推送短信给机构,获取账号密码。
|
|
* 协销去后台审核,机构用账号密码登录绑定微信
|
|
* 协销去后台审核,机构用账号密码登录绑定微信
|
|
*/
|
|
*/
|
|
- // 发送短信
|
|
|
|
- if (StringUtils.isBlank(onlineDto.getContractEmail())) {
|
|
|
|
- //普通机构
|
|
|
|
- boolean smsFlag = AliyunSmsUtil.sendSms(mobile, 7, "{name:"+ mobile +",password:"+ initPassword +"}");
|
|
|
|
- if (!smsFlag) {
|
|
|
|
- // 短信发送失败重试一次
|
|
|
|
- AliyunSmsUtil.sendSms(mobile, 7, "{name:"+ mobile +",password:"+ initPassword +"}");
|
|
|
|
- }
|
|
|
|
- // 打印短信内容
|
|
|
|
- log.info(">>>短信内容:" + String.format(mailTxt, mobile, initPassword));
|
|
|
|
- } else {
|
|
|
|
|
|
+ String logTxt = "【协销拉机构上线】短信内容:>>>欢迎成为采美 %s 用户,您的登录账号为:%s,初始密码为:%s";
|
|
|
|
+ int smsType = 7;
|
|
|
|
+ if (StringUtils.isNotBlank(onlineDto.getContractEmail())) {
|
|
// 会员机构
|
|
// 会员机构
|
|
- boolean smsFlag = AliyunSmsUtil.sendSms(mobile, 6, "{name:"+ mobile +",password:"+ initPassword +"}");
|
|
|
|
- if (!smsFlag) {
|
|
|
|
- // 短信发送失败重试一次
|
|
|
|
- AliyunSmsUtil.sendSms(mobile, 6, "{name:"+ mobile +",password:"+ initPassword +"}");
|
|
|
|
- }
|
|
|
|
- // 打印短信内容
|
|
|
|
- log.info(">>>短信内容:" + String.format(memberMailTxt, mobile, initPassword));
|
|
|
|
|
|
+ logTxt = String.format(logTxt, "会员机构", mobile, initPassword);
|
|
|
|
+ smsType = 6;
|
|
|
|
+ } else {
|
|
|
|
+ // 普通机构
|
|
|
|
+ logTxt = String.format(logTxt, "普通机构", mobile, initPassword);
|
|
}
|
|
}
|
|
|
|
+ // 发送短信
|
|
|
|
+ boolean smsFlag = AliyunSmsUtil.sendSms(mobile, smsType, "{name:"+ mobile +",password:"+ initPassword +"}");
|
|
|
|
+ if (!smsFlag) {
|
|
|
|
+ // 短信发送失败重试一次
|
|
|
|
+ AliyunSmsUtil.sendSms(mobile, smsType, "{name:"+ mobile +",password:"+ initPassword +"}");
|
|
|
|
+ }
|
|
|
|
+ // 打印短信内容
|
|
|
|
+ log.info(logTxt);
|
|
|
|
+
|
|
// 返回状态
|
|
// 返回状态
|
|
return ResponseJson.success(club);
|
|
return ResponseJson.success(club);
|
|
}
|
|
}
|