Commit 37339f6b by duanhq

短信模板修改 by duanht 2019/3/29

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@19094 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 3d371dc8
...@@ -14,7 +14,7 @@ public class Constants { ...@@ -14,7 +14,7 @@ public class Constants {
/** /**
* 用户信息审核短信模板 * 用户信息审核短信模板
*/ */
public static final String USER_INFO_APPROVAL_SMS_CONTENT = "您收到的验证码是:{0}。为保障信息安全,请勿告诉他人。【包活干汽车服务共享平台】"; public static final String USER_INFO_APPROVAL_SMS_CONTENT = "您收到的验证码是:{0}。为保障信息安全,请勿告诉他人。";
/** /**
* 短信类型 * 短信类型
......
...@@ -113,7 +113,7 @@ public class CommonController { ...@@ -113,7 +113,7 @@ public class CommonController {
public ResultObject sendSms(@RequestParam("phone") String phone ,@RequestParam("name") String name) throws IOException { public ResultObject sendSms(@RequestParam("phone") String phone ,@RequestParam("name") String name) throws IOException {
SmsUtil smsUtil = new SmsUtil(); SmsUtil smsUtil = new SmsUtil();
try { try {
String msgContent = MessageFormat.format("{0},您的包活干技工注册申请已通过。请打开微信小程序登陆,默认密码为{1}【包活干汽车服务共享平台】",name, phone); String msgContent = MessageFormat.format("{0},您的包活干技工注册申请已通过。请打开微信小程序登陆,默认密码为{1}",name, phone);
smsUtil.send(phone, msgContent, PropertiesUtil.getProperty(Constants.SMS_REGISTER_SOURCE)); smsUtil.send(phone, msgContent, PropertiesUtil.getProperty(Constants.SMS_REGISTER_SOURCE));
}catch (Exception e) { }catch (Exception e) {
logger.error(phone+"技工注册成功发送短信失败" + e.getMessage(), e); logger.error(phone+"技工注册成功发送短信失败" + e.getMessage(), e);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!