您的位置:首页 > 编程语言

测试markdown的代码行号

2018-03-02 10:23 106 查看
中国啊

public String sendSms() throws IOException {

//手机号保存在了Customer对象中

//生成短信验证码

String randomCode= RandomStringUtils.randomNumeric(4);

//将短信验证码存入到session

ServletActionContext.getRequest().getSession().setAttribute(model.getTelephone(),randomCode);

System.out.println("生成的短信验证码是"+randomCode);

//编辑短信内容

String msg="尊敬的用户您好,本次获取的验证码为:"

+ randomCode + ",服务电话:4006184000";

//String result = SmsUtil.sendSmsByHTTP(model.getTelephone(), msg);

String result="000";

if (result.startsWith("000")){

return NONE;

}else {

throw new RuntimeException("短信发送失败,信息码是:"+result);

/* System.out.println("信息失败"+result);

return NONE;*/

}

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  测试