Commit 548e4ed9 authored by hezhen's avatar hezhen

123

parent bfbc27da
...@@ -252,6 +252,20 @@ public class AppUserRest { ...@@ -252,6 +252,20 @@ 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();
}
@ApiModelProperty("修改手机号码") @ApiModelProperty("修改手机号码")
@GetMapping("/updUsername") @GetMapping("/updUsername")
public ObjectRestResponse updUsername(@RequestParam(value = "username") String username, public ObjectRestResponse updUsername(@RequestParam(value = "username") String username,
......
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