diff --git a/src/main/java/com/chinaunicom/mall/ebtp/extend/shortmessage/controller/BizShortMessageController.java b/src/main/java/com/chinaunicom/mall/ebtp/extend/shortmessage/controller/BizShortMessageController.java index 6932388..ed80945 100644 --- a/src/main/java/com/chinaunicom/mall/ebtp/extend/shortmessage/controller/BizShortMessageController.java +++ b/src/main/java/com/chinaunicom/mall/ebtp/extend/shortmessage/controller/BizShortMessageController.java @@ -61,10 +61,13 @@ public class BizShortMessageController{ * authCode 验证码 * callbackUrl UrlEncode编码 应用系统回调确认用户有效性的地址,应用系统传了这个地址则用户有效性由该地址确定 */ - @PostMapping("/check/authCode") - public BaseResponse authCodeCheck(@RequestParam String mobile, - @RequestParam String authCode){ - return BaseResponse.success(iBizShortMessageService.authCodeCheck(mobile, authCode)); + @GetMapping("/check/authCode") + public BaseResponse 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)); } /**