校验手机号加密
This commit is contained in:
@ -61,10 +61,13 @@ public class BizShortMessageController{
|
|||||||
* authCode 验证码
|
* authCode 验证码
|
||||||
* callbackUrl UrlEncode编码 应用系统回调确认用户有效性的地址,应用系统传了这个地址则用户有效性由该地址确定
|
* callbackUrl UrlEncode编码 应用系统回调确认用户有效性的地址,应用系统传了这个地址则用户有效性由该地址确定
|
||||||
*/
|
*/
|
||||||
@PostMapping("/check/authCode")
|
@GetMapping("/check/authCode")
|
||||||
public BaseResponse<Boolean> authCodeCheck(@RequestParam String mobile,
|
public BaseResponse<Boolean> authCodeCheck(@RequestParam(name = "mobile")String mobile,
|
||||||
@RequestParam String authCode){
|
@RequestParam(name = "authCode") String authCode){
|
||||||
return BaseResponse.success(iBizShortMessageService.authCodeCheck(mobile, authCode));
|
log.info("解密前:"+mobile);
|
||||||
|
String value = RSA.decrypt(mobile,privateKey);
|
||||||
|
log.info("解密后:"+value);
|
||||||
|
return BaseResponse.success(iBizShortMessageService.authCodeCheck(value, authCode));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user