嘉兴访客
This commit is contained in:
1 parent
4d3903e0f5
commit
bc82bf75bc
2 files changed
+4
-1
No files matched your search
+3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user