嘉兴访客
This commit is contained in:
1 parent
4d3903e0f5
commit
bc82bf75bc
2 files changed
+4
-1
No files matched your search
+1
-1
@@ -41,7 +41,7 @@ public class RegisterAppointmentRequest {
|
||||
* 0-使用登记权限,1-权限合并
|
||||
*/
|
||||
@Pattern(regexp = "[01]", message = "权限模式参数错误")
|
||||
private String isUseOrderAuth = "0";
|
||||
private String isUseOrderAuth = "1";
|
||||
|
||||
@Data
|
||||
@Schema(description = "访客权限配置")
|
||||
|
||||
+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