|
@@ -57,9 +57,9 @@ public class UserAuthRestController {
|
|
|
|
|
|
@ApiOperation(value = "验证码接口", notes = "参数accountType值说明:学生身份证号类型=STUDENT_IDENTITY_NUMBER,学生学号类型=STUDENT_CODE,学生手机号类型=STUDENT_PHONE")
|
|
|
@RequestMapping(value = "/user/verify", method = {RequestMethod.GET, RequestMethod.POST})
|
|
|
- public Result<UserInfo> verifyLogin(@RequestParam String account, @RequestParam String smsCode, @RequestParam String accountType, @RequestParam(required = false) Long rootOrgId,
|
|
|
+ public Result<UserInfo> verifyLogin(@RequestParam String account, @RequestParam String smsCode, @RequestParam(required = false) Long rootOrgId,
|
|
|
@RequestParam(required = false) String domain, @RequestHeader String deviceId) throws Exception {
|
|
|
- LoginInfo loginInfo = new LoginInfo(account, null, accountType, rootOrgId, domain, deviceId, smsCode);
|
|
|
+ LoginInfo loginInfo = new LoginInfo(account, null, "STUDENT_PHONE", rootOrgId, domain, deviceId, smsCode);
|
|
|
Result<UserInfo> result = userAuthService.login(loginInfo);
|
|
|
if (result.isSuccess() && result.getData() != null) {
|
|
|
//登录成功后缓存Token信息
|