From bc82bf75bc47f28abef78b084f75fa09e7cd0e35 Mon Sep 17 00:00:00 2001 From: zjf <1799650030@qq.com> Date: Thu, 5 Jun 2025 17:00:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=98=89=E5=85=B4=E8=AE=BF=E5=AE=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dto/visitor/request/make/RegisterAppointmentRequest.java | 2 +- .../com/bsd/pjcloud/thirdparty/service/VisitorService.java | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/pjcloud-thirdparty/pjcloud-thirdparty-api/src/main/java/com/bsd/pjcloud/thirdparty/dto/visitor/request/make/RegisterAppointmentRequest.java b/pjcloud-thirdparty/pjcloud-thirdparty-api/src/main/java/com/bsd/pjcloud/thirdparty/dto/visitor/request/make/RegisterAppointmentRequest.java index c81e37803..5966d4161 100644 --- a/pjcloud-thirdparty/pjcloud-thirdparty-api/src/main/java/com/bsd/pjcloud/thirdparty/dto/visitor/request/make/RegisterAppointmentRequest.java +++ b/pjcloud-thirdparty/pjcloud-thirdparty-api/src/main/java/com/bsd/pjcloud/thirdparty/dto/visitor/request/make/RegisterAppointmentRequest.java @@ -41,7 +41,7 @@ public class RegisterAppointmentRequest { * 0-使用登记权限,1-权限合并 */ @Pattern(regexp = "[01]", message = "权限模式参数错误") - private String isUseOrderAuth = "0"; + private String isUseOrderAuth = "1"; @Data @Schema(description = "访客权限配置") diff --git a/pjcloud-thirdparty/pjcloud-thirdparty-biz/src/main/java/com/bsd/pjcloud/thirdparty/service/VisitorService.java b/pjcloud-thirdparty/pjcloud-thirdparty-biz/src/main/java/com/bsd/pjcloud/thirdparty/service/VisitorService.java index 977151c4a..bc6317acc 100644 --- a/pjcloud-thirdparty/pjcloud-thirdparty-biz/src/main/java/com/bsd/pjcloud/thirdparty/service/VisitorService.java +++ b/pjcloud-thirdparty/pjcloud-thirdparty-biz/src/main/java/com/bsd/pjcloud/thirdparty/service/VisitorService.java @@ -64,6 +64,7 @@ public class VisitorService extends BaseHikvisionService { //调试的时候写死 // request.setReceptionistId(properties.getPersonId()); JSONObject body = convertRequestToJSON(request); + log.info("海康请求JSON: {}", body.toJSONString()); String responseJson = sendPostRequest("visitor-appointment", body); // 添加日志便于调试 @@ -291,6 +292,7 @@ public class VisitorService extends BaseHikvisionService { // 2. 转换请求体 JSONObject body = convertRequestToJSON(request); + log.info("执行预约登记请求体: {}", body.toJSONString()); // 3. 发送请求 String responseJson = ArtemisHttpUtil.doPostStringArtemis( @@ -299,6 +301,7 @@ public class VisitorService extends BaseHikvisionService { null, null, "application/json", null ); + log.info("执行预约登记响应: {}", responseJson); // 4. 处理响应 return registerAppointmentParseResponse(responseJson); }