|
@@ -73,10 +73,10 @@ public class Api_ParentController {
|
|
|
if (!matches) {
|
|
|
return AjaxResult.error("手机号输入格式不正确");
|
|
|
}
|
|
|
-// String cacheCode = redisCache.getCacheObject(form.getPhone());
|
|
|
-// if (cacheCode == null || !cacheCode.equalsIgnoreCase(form.getCode())) {
|
|
|
-// return AjaxResult.error("验证码输入错误");
|
|
|
-// }
|
|
|
+ String cacheCode = redisCache.getCacheObject(form.getPhone());
|
|
|
+ if (cacheCode == null || !cacheCode.equalsIgnoreCase(form.getCode())) {
|
|
|
+ return AjaxResult.error("验证码输入错误");
|
|
|
+ }
|
|
|
// step2:通过手机号去查询家长
|
|
|
Authentication authenticate;
|
|
|
try {
|