feat:智能柜流程修改
This commit is contained in:
1 parent
c1485e7058
commit
a0b620d7db
9 files changed
+111
-30
No files matched your search
+14
-1
@@ -15,5 +15,18 @@ public class DoorConfig {
|
||||
|
||||
private String appKey;
|
||||
|
||||
private String selfBaseUrl;
|
||||
/**
|
||||
* 回调基础url
|
||||
*/
|
||||
private String callbackBaseUrl;
|
||||
|
||||
/**
|
||||
* 开锁回调url
|
||||
*/
|
||||
private String callbackLockUrl;
|
||||
|
||||
/**
|
||||
* 视频回调url
|
||||
*/
|
||||
private String callbackVideoUrl;
|
||||
}
|
||||
+2
@@ -212,6 +212,8 @@ public class ThirdDoorApiServiceImpl implements ThirdDoorApiService {
|
||||
ThirdDoorLogEntity logEntity = api.getInitLogEntity();
|
||||
logEntity.setReq(JSONUtil.toJsonStr(dto));
|
||||
try {
|
||||
dto.setLockNotifyUrl(doorConfig.getCallbackBaseUrl() + doorConfig.getCallbackLockUrl());
|
||||
dto.setVideoNotifyUrl(doorConfig.getCallbackBaseUrl() + doorConfig.getCallbackVideoUrl());
|
||||
String body = JSONUtil.toJsonStr(dto);
|
||||
String res = api.getHttpRequest().header(apiCountersign(body)).body(body).execute().body();
|
||||
if (ObjectUtil.isEmpty(res)) throw new RuntimeException("response响应为空");
|
||||
|
||||
+3
-2
@@ -75,8 +75,9 @@ door:
|
||||
base-url: https://www.365e-life.net:8443/bkopenapi
|
||||
app-id: 2025040991646569
|
||||
app-key: 2800650617d44e0d8b31ad5287431179
|
||||
|
||||
self-base-url:
|
||||
callback-base-url: http://h1yzkslmyx.ny.takin.cc
|
||||
callback-lock-url: /third/third-door/callback/open
|
||||
callback-video-url: /third/third-door/callback/video
|
||||
|
||||
# 旷世识别
|
||||
ks-discern:
|
||||
|
||||
Reference in new issue
Block a user