|
@@ -23,6 +23,7 @@ import cn.com.qmth.examcloud.core.basic.service.ImgCodeService;
|
|
import cn.com.qmth.examcloud.core.basic.service.SmsCodeService;
|
|
import cn.com.qmth.examcloud.core.basic.service.SmsCodeService;
|
|
import cn.com.qmth.examcloud.core.basic.service.StudentService;
|
|
import cn.com.qmth.examcloud.core.basic.service.StudentService;
|
|
import cn.com.qmth.examcloud.core.basic.service.bean.LoginInfo;
|
|
import cn.com.qmth.examcloud.core.basic.service.bean.LoginInfo;
|
|
|
|
+import cn.com.qmth.examcloud.core.basic.service.cache.StudentCache;
|
|
import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
|
|
import cn.com.qmth.examcloud.web.helpers.GlobalHelper;
|
|
import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
import cn.com.qmth.examcloud.web.support.ApiId;
|
|
import cn.com.qmth.examcloud.web.support.ApiId;
|
|
@@ -64,6 +65,9 @@ public class AuthController extends ControllerSupport {
|
|
@Autowired
|
|
@Autowired
|
|
ImgCodeService imgCodeService;
|
|
ImgCodeService imgCodeService;
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ StudentCache studentCache;
|
|
|
|
+
|
|
@Naked
|
|
@Naked
|
|
@WithoutStackTrace(true)
|
|
@WithoutStackTrace(true)
|
|
@ApiOperation(value = "登入", notes = "")
|
|
@ApiOperation(value = "登入", notes = "")
|
|
@@ -198,7 +202,9 @@ public class AuthController extends ControllerSupport {
|
|
|
|
|
|
StudentEntity s = GlobalHelper.getEntity(studentRepo, studentId, StudentEntity.class);
|
|
StudentEntity s = GlobalHelper.getEntity(studentRepo, studentId, StudentEntity.class);
|
|
s.setSecurityPhone(phone);
|
|
s.setSecurityPhone(phone);
|
|
- studentRepo.saveAndFlush(s);
|
|
|
|
|
|
+ StudentEntity saved = studentRepo.saveAndFlush(s);
|
|
|
|
+
|
|
|
|
+ studentCache.remove(saved.getId());
|
|
}
|
|
}
|
|
|
|
|
|
@ApiOperation(value = "获取验证码图片", notes = "")
|
|
@ApiOperation(value = "获取验证码图片", notes = "")
|