Commit 9030d808 authored by unset's avatar unset

添加通知信息

parent 6e6299f8
...@@ -50,8 +50,13 @@ public class SmsService { ...@@ -50,8 +50,13 @@ public class SmsService {
public JSONObject smsCode(String mobile){ public JSONObject smsCode(String mobile){
String code = RandomUtil.getRandomStr(6);// 6位短信验证码 String code = RandomUtil.getRandomStr(6);// 6位短信验证码
tencentSmsService.sendSms(mobile, code); try {
return JsonResultUtil.createSuccessResult(); tencentSmsService.sendSms(mobile, code);
return JsonResultUtil.createSuccessResultWithObj(code);
} catch (Exception e) {
log.error(e.getMessage(), e);
return JsonResultUtil.createDefaultFail();
}
} }
public JSONObject smsByCode(String mobile,String pwd,String templateCode){ public JSONObject smsByCode(String mobile,String pwd,String templateCode){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment