设备认证

This commit is contained in:
sxu 2025-03-20 16:57:48 +08:00
parent 2fe984f268
commit 2f22341e16
1 changed files with 2 additions and 2 deletions

View File

@ -162,8 +162,8 @@ public class AuthController {
@ApiOperation("设备认证")
@PostMapping({"/device/login"})
public AjaxResult deviceLogin(@RequestHeader Map<String, String> header, @RequestBody String request) {
String deviceSn = SmUtils.decryptBySm2(request);
public AjaxResult deviceLogin(@RequestHeader Map<String, String> 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)) {