校验手机号加密

This commit is contained in:
zhangqinbin
2023-09-02 08:32:17 +08:00
parent c6850b21e6
commit cde8475ec8

View File

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