Commit 44a05de4 authored by libin's avatar libin

Merge remote-tracking branch 'origin/base-modify' into base-modify

parents cbe52b07 f64a23b1
...@@ -254,5 +254,19 @@ public class AppUserRest { ...@@ -254,5 +254,19 @@ public class AppUserRest {
return ObjectRestResponse.succ(); return ObjectRestResponse.succ();
} }
@ApiModelProperty("检查手机号验证码")
@GetMapping("/unauth/checkMobilecode")
public ObjectRestResponse checkMobilecode(@RequestParam(value = "phone") String phone,
@RequestParam(value = "mobilecode") String mobilecode){
if (StringUtils.isBlank(phone)||StringUtils.isBlank(mobilecode)){
return ObjectRestResponse.createFailedResult(ResultCode.NULL_CODE, "参数为空");
}
String redisKey=appPermissionService.checkCodeByUsername(phone,mobilecode);
if (StringUtils.isBlank(redisKey)){
return ObjectRestResponse.createFailedResult(ResultCode.NOTEXIST_CODE, "验证码错误");
}
return ObjectRestResponse.succ();
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment