【fix sonar】LoginServiceImpl文件

This commit is contained in:
梁琦涛
2023-04-04 10:35:51 +08:00
parent 4aeb651ca1
commit 0dbb449138
@@ -242,8 +242,8 @@ public class LoginServiceImpl implements ILoginService {
}
@Override
public Results<String> sms(JSONObject jsonObject) {
Results<String> result = new Results<>();
public Results<JSONObject> sms(JSONObject jsonObject) {
Results<JSONObject> result = new Results<>();
String mobile = jsonObject.get("mobile").toString();
//手机号模式 登录模式: "2" 注册模式: "1"
String smsmode=jsonObject.get("smsmode").toString();
@@ -296,9 +296,6 @@ public class LoginServiceImpl implements ILoginService {
}
//验证码10分钟内有效
redisUtil.set(mobile, captcha, 600);
//update-begin--Author:scott Date:20190812 forissues#391
//result.setResult(captcha);
//update-end--Author:scott Date:20190812 forissues#391
result.setSuccess(true);
} catch (ClientException e) {