diff --git a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/oauth/controller/AuthController.java b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/oauth/controller/AuthController.java index 305cf813..cebe7e60 100644 --- a/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/oauth/controller/AuthController.java +++ b/bonus-modules/bonus-smart-canteen/src/main/java/com/bonus/canteen/core/auth/oauth/controller/AuthController.java @@ -162,8 +162,8 @@ public class AuthController { @ApiOperation("设备认证") @PostMapping({"/device/login"}) - public AjaxResult deviceLogin(@RequestHeader Map header, @RequestBody String request) { - String deviceSn = SmUtils.decryptBySm2(request); + public AjaxResult deviceLogin(@RequestHeader Map header, @RequestParam String encryptedDeviceSn) { + String deviceSn = SmUtils.decryptBySm2(encryptedDeviceSn); String encryptKey = HeaderFetchUtil.getValueFromHeadersIgnoreCase(header, this.secureProperties.getSecurity().getServerEncryptedClientKeyHeaderName()); String clientKey = SmUtils.decryptBySm4WithServerKey(encryptKey); if (CharSequenceUtil.isEmpty(deviceSn)) {