【fix sonar】LoginServiceImpl文件
This commit is contained in:
+2
-5
@@ -242,8 +242,8 @@ public class LoginServiceImpl implements ILoginService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Results<String> sms(JSONObject jsonObject) {
|
public Results<JSONObject> sms(JSONObject jsonObject) {
|
||||||
Results<String> result = new Results<>();
|
Results<JSONObject> result = new Results<>();
|
||||||
String mobile = jsonObject.get("mobile").toString();
|
String mobile = jsonObject.get("mobile").toString();
|
||||||
//手机号模式 登录模式: "2" 注册模式: "1"
|
//手机号模式 登录模式: "2" 注册模式: "1"
|
||||||
String smsmode=jsonObject.get("smsmode").toString();
|
String smsmode=jsonObject.get("smsmode").toString();
|
||||||
@@ -296,9 +296,6 @@ public class LoginServiceImpl implements ILoginService {
|
|||||||
}
|
}
|
||||||
//验证码10分钟内有效
|
//验证码10分钟内有效
|
||||||
redisUtil.set(mobile, captcha, 600);
|
redisUtil.set(mobile, captcha, 600);
|
||||||
//update-begin--Author:scott Date:20190812 for:issues#391
|
|
||||||
//result.setResult(captcha);
|
|
||||||
//update-end--Author:scott Date:20190812 for:issues#391
|
|
||||||
result.setSuccess(true);
|
result.setSuccess(true);
|
||||||
|
|
||||||
} catch (ClientException e) {
|
} catch (ClientException e) {
|
||||||
|
|||||||
Reference in New Issue
Block a user