|
@@ -26,7 +26,7 @@ public class HKOpenApi {
|
26
|
26
|
*/
|
27
|
27
|
public static String getMonitoryPoint(Map<String,Object> map){
|
28
|
28
|
Map<String,Object> parMap = Maps.newHashMap();
|
29
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ITF_MONITORY_POINT;
|
|
29
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ITF_MONITORY_POINT;
|
30
|
30
|
//设置APPKEY
|
31
|
31
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
32
|
32
|
//设置时间参数
|
|
@@ -58,7 +58,7 @@ public class HKOpenApi {
|
58
|
58
|
*/
|
59
|
59
|
public static String getDeptName(Map<String,Object> map){
|
60
|
60
|
Map<String,Object> parMap = Maps.newHashMap();
|
61
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ITF_LIKE_DEPT_NAME;
|
|
61
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ITF_LIKE_DEPT_NAME;
|
62
|
62
|
//设置APPKEY
|
63
|
63
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
64
|
64
|
//设置时间参数
|
|
@@ -91,7 +91,7 @@ public class HKOpenApi {
|
91
|
91
|
*/
|
92
|
92
|
public static String addUser(Map<String,Object> map){
|
93
|
93
|
Map<String,Object> parMap = Maps.newHashMap();
|
94
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ITF_ADD_USER;
|
|
94
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ITF_ADD_USER;
|
95
|
95
|
//设置APPKEY获取中心信息
|
96
|
96
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
97
|
97
|
//设置时间参数
|
|
@@ -125,7 +125,7 @@ public class HKOpenApi {
|
125
|
125
|
*/
|
126
|
126
|
public static String openCard(Map<String,Object> map){
|
127
|
127
|
Map<String,Object> parMap = Maps.newHashMap();
|
128
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ITF_OPEN_CARD;
|
|
128
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ITF_OPEN_CARD;
|
129
|
129
|
//设置APPKEY
|
130
|
130
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
131
|
131
|
//设置时间参数
|
|
@@ -157,7 +157,7 @@ public class HKOpenApi {
|
157
|
157
|
*/
|
158
|
158
|
public static String getACDevicesByUnitUuids(Map<String, Object> map){
|
159
|
159
|
Map<String,Object> parMap = Maps.newHashMap();
|
160
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ITF_MONITORY_POINT;
|
|
160
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ITF_MONITORY_POINT;
|
161
|
161
|
//设置APPKEY
|
162
|
162
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
163
|
163
|
//设置时间参数
|
|
@@ -188,7 +188,7 @@ public class HKOpenApi {
|
188
|
188
|
*/
|
189
|
189
|
public static String getDoors(Map<String,Object> map){
|
190
|
190
|
Map<String,Object> parMap = Maps.newHashMap();
|
191
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.GET_DOORS; // HKConstant.ITF_MONITORY_POINT;
|
|
191
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.GET_DOORS; // HKConstant.ITF_MONITORY_POINT;
|
192
|
192
|
//设置APPKEY
|
193
|
193
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
194
|
194
|
//设置时间参数
|
|
@@ -218,7 +218,7 @@ public class HKOpenApi {
|
218
|
218
|
*/
|
219
|
219
|
public static String getUnitsByUuids(Map<String,Object> map){
|
220
|
220
|
Map<String,Object> parMap = Maps.newHashMap();
|
221
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ITF_MONITORY_POINT;
|
|
221
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ITF_MONITORY_POINT;
|
222
|
222
|
//设置APPKEY
|
223
|
223
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
224
|
224
|
//设置时间参数
|
|
@@ -248,7 +248,7 @@ public class HKOpenApi {
|
248
|
248
|
*/
|
249
|
249
|
public static String getRegionsByUnitUuid(Map<String,Object> map){
|
250
|
250
|
Map<String,Object> parMap = Maps.newHashMap();
|
251
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ITF_MONITORY_POINT;
|
|
251
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ITF_MONITORY_POINT;
|
252
|
252
|
//设置APPKEY
|
253
|
253
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
254
|
254
|
//设置时间参数
|
|
@@ -279,7 +279,7 @@ public class HKOpenApi {
|
279
|
279
|
*/
|
280
|
280
|
public static String getDoorsByRegionUuids(Map<String,Object> map){
|
281
|
281
|
Map<String,Object> parMap = Maps.newHashMap();
|
282
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.DOORS_BY_REGION_UUIDS;
|
|
282
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.DOORS_BY_REGION_UUIDS;
|
283
|
283
|
//设置APPKEY
|
284
|
284
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
285
|
285
|
//设置时间参数
|
|
@@ -307,7 +307,7 @@ public class HKOpenApi {
|
307
|
307
|
*/
|
308
|
308
|
public static String addAuthoritiesByPersonIds(Map<String, Object> map){
|
309
|
309
|
Map<String,Object> parMap = Maps.newHashMap();
|
310
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ADD_AUTHORITIES_BY_PERSONIDS;
|
|
310
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ADD_AUTHORITIES_BY_PERSONIDS;
|
311
|
311
|
//设置APPKEY
|
312
|
312
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
313
|
313
|
//设置时间参数
|
|
@@ -339,7 +339,7 @@ public class HKOpenApi {
|
339
|
339
|
*/
|
340
|
340
|
public static String downloadAuthorityByDeviceUuids(Map<String,Object> map){
|
341
|
341
|
Map<String,Object> parMap = Maps.newHashMap();
|
342
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.DOWNLOAD_AUTHORITY_BY_DEVICEUUIDS;
|
|
342
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.DOWNLOAD_AUTHORITY_BY_DEVICEUUIDS;
|
343
|
343
|
//设置APPKEY
|
344
|
344
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
345
|
345
|
//设置时间参数
|
|
@@ -370,7 +370,7 @@ public class HKOpenApi {
|
370
|
370
|
*/
|
371
|
371
|
public static String downloadAuthorityByPersonIds(Map<String,Object> map){
|
372
|
372
|
Map<String,Object> parMap = Maps.newHashMap();
|
373
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.DOWNLOAD_AUTHORITY_BY_PERSONIDS;
|
|
373
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.DOWNLOAD_AUTHORITY_BY_PERSONIDS;
|
374
|
374
|
//设置APPKEY
|
375
|
375
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
376
|
376
|
//设置时间参数
|
|
@@ -407,7 +407,7 @@ public class HKOpenApi {
|
407
|
407
|
public static String getPlans(Integer pageNo, Integer pageSize, Map<String, Object> map) {
|
408
|
408
|
|
409
|
409
|
Map<String,Object> parMap = Maps.newHashMap();
|
410
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.GETPLANS;
|
|
410
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.GETPLANS;
|
411
|
411
|
//设置APPKEY
|
412
|
412
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
413
|
413
|
//设置时间参数
|
|
@@ -436,7 +436,7 @@ public class HKOpenApi {
|
436
|
436
|
*/
|
437
|
437
|
public static String downloadFaceAndFingerInfos(Map<String, Object> map){
|
438
|
438
|
Map<String,Object> parMap = Maps.newHashMap();
|
439
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.DOWNLOAD_FACE_AND_FINGERINFOS;
|
|
439
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.DOWNLOAD_FACE_AND_FINGERINFOS;
|
440
|
440
|
//设置APPKEY
|
441
|
441
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
442
|
442
|
//设置时间参数
|
|
@@ -469,7 +469,7 @@ public class HKOpenApi {
|
469
|
469
|
* @return
|
470
|
470
|
*/
|
471
|
471
|
public static String HKpersonGroupId(MultipartFile faceImg,Integer personNo,String personName, String openapi_ip_port_http){
|
472
|
|
- String url = openapi_ip_port_http == null ? HKConstant.OPENAPI_IP_PORT_HTTP : openapi_ip_port_http + HKConstant.ITF_ADD_USER;
|
|
472
|
+ String url = (openapi_ip_port_http == null ? HKConstant.OPENAPI_IP_PORT_HTTP : openapi_ip_port_http) + HKConstant.ITF_ADD_USER;
|
473
|
473
|
Map<String, Object> map = new HashMap<String, Object>();
|
474
|
474
|
map.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
475
|
475
|
map.put("time", System.currentTimeMillis());
|
|
@@ -544,7 +544,7 @@ public class HKOpenApi {
|
544
|
544
|
* @return
|
545
|
545
|
*/
|
546
|
546
|
public static String updateUser(Map<String,Object> map) {
|
547
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ITF_UPDATE_USER;
|
|
547
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ITF_UPDATE_USER;
|
548
|
548
|
Map<String, Object> parMap = new HashMap<String, Object>();
|
549
|
549
|
//设置APPKEY
|
550
|
550
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
|
@@ -583,7 +583,7 @@ public class HKOpenApi {
|
583
|
583
|
*/
|
584
|
584
|
public static String temporaryRegister(String visitorName, String phoneNo,Integer personNum,Long startTime,Long endTime,Integer personId, String opUserUuid, String appkey, String secret, String openapi_ip_port_http){
|
585
|
585
|
Map<String,Object> parMap = Maps.newHashMap();
|
586
|
|
- String url = openapi_ip_port_http == null ? HKConstant.OPENAPI_IP_PORT_HTTP : openapi_ip_port_http + HKConstant.TEMPORARY_REGISTER;
|
|
586
|
+ String url = (openapi_ip_port_http == null ? HKConstant.OPENAPI_IP_PORT_HTTP : openapi_ip_port_http) + HKConstant.TEMPORARY_REGISTER;
|
587
|
587
|
//设置APPKEY
|
588
|
588
|
parMap.put("appkey", appkey == null?HKConstant.APPKEY:appkey);
|
589
|
589
|
//设置时间参数
|
|
@@ -625,7 +625,7 @@ public class HKOpenApi {
|
625
|
625
|
*/
|
626
|
626
|
public static String HKpersonPhone(Integer personId,Long personNo,String personName,String phoneNo, String openapi_ip_port_http) {
|
627
|
627
|
|
628
|
|
- String url = openapi_ip_port_http == null ? HKConstant.OPENAPI_IP_PORT_HTTP : openapi_ip_port_http + HKConstant.ITF_UPDATE_USER;
|
|
628
|
+ String url = (openapi_ip_port_http == null ? HKConstant.OPENAPI_IP_PORT_HTTP : openapi_ip_port_http) + HKConstant.ITF_UPDATE_USER;
|
629
|
629
|
Map<String, Object> map = new HashMap<String, Object>();
|
630
|
630
|
map.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
631
|
631
|
map.put("time", System.currentTimeMillis());
|
|
@@ -666,7 +666,7 @@ public class HKOpenApi {
|
666
|
666
|
*/
|
667
|
667
|
public static String HKgetDoorDevicesByUnitUuids(Map<String, Object> map){
|
668
|
668
|
|
669
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.GETDOORDEVICESBYUNITUUIDS;
|
|
669
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.GETDOORDEVICESBYUNITUUIDS;
|
670
|
670
|
Map<String, Object> parMap = new HashMap<>();
|
671
|
671
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
672
|
672
|
parMap.put("time", System.currentTimeMillis());
|
|
@@ -703,7 +703,7 @@ public class HKOpenApi {
|
703
|
703
|
* @return
|
704
|
704
|
*/
|
705
|
705
|
public static String syncControl(Map<String, Object> map) {
|
706
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.SYNCCONTROL;
|
|
706
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.SYNCCONTROL;
|
707
|
707
|
Map<String, Object> parMap = new HashMap<>();
|
708
|
708
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
709
|
709
|
parMap.put("time", System.currentTimeMillis());
|
|
@@ -734,7 +734,7 @@ public class HKOpenApi {
|
734
|
734
|
* @return
|
735
|
735
|
*/
|
736
|
736
|
public static String visualIntercom(String opUserUuid, Integer opType,List<Integer> personIds,List<String> longNums, String appkey, String secret, String openapi_ip_port_http) {
|
737
|
|
- String url = openapi_ip_port_http == null ? HKConstant.OPENAPI_IP_PORT_HTTP : openapi_ip_port_http + HKConstant.DOWNLOADFACE;
|
|
737
|
+ String url = (openapi_ip_port_http == null ? HKConstant.OPENAPI_IP_PORT_HTTP : openapi_ip_port_http) + HKConstant.DOWNLOADFACE;
|
738
|
738
|
HashMap map = new HashMap<>();
|
739
|
739
|
map.put("appkey", appkey == null?HKConstant.APPKEY:appkey);
|
740
|
740
|
map.put("time", System.currentTimeMillis());
|
|
@@ -767,7 +767,7 @@ public class HKOpenApi {
|
767
|
767
|
* @return
|
768
|
768
|
*/
|
769
|
769
|
public static String addOutDoorAuth(Map<String, Object> map) {
|
770
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ADDOUTDOORAUTH;
|
|
770
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ADDOUTDOORAUTH;
|
771
|
771
|
|
772
|
772
|
Map<String, Object> parMap = new HashMap<>();
|
773
|
773
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
|
@@ -804,7 +804,7 @@ public class HKOpenApi {
|
804
|
804
|
* @return
|
805
|
805
|
*/
|
806
|
806
|
public static String delOutDoorAuth(Map<String, Object> map) {
|
807
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.DELOUTDOORAUTH;
|
|
807
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.DELOUTDOORAUTH;
|
808
|
808
|
|
809
|
809
|
Map<String, Object> parMap = new HashMap<>();
|
810
|
810
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
|
@@ -841,7 +841,7 @@ public class HKOpenApi {
|
841
|
841
|
* @return
|
842
|
842
|
*/
|
843
|
843
|
public static String downloadFinger(Map<String, Object> map) {
|
844
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.DOWNLOADFINGER;
|
|
844
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.DOWNLOADFINGER;
|
845
|
845
|
|
846
|
846
|
Map<String, Object> parMap = new HashMap<>();
|
847
|
847
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
|
@@ -872,7 +872,7 @@ public class HKOpenApi {
|
872
|
872
|
* @return
|
873
|
873
|
*/
|
874
|
874
|
public static String getUsers(Map<String, Object> map){
|
875
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.GETUSERS;
|
|
875
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.GETUSERS;
|
876
|
876
|
Map<String, Object> parMap = new HashMap<>();
|
877
|
877
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
878
|
878
|
parMap.put("time", System.currentTimeMillis());
|
|
@@ -901,7 +901,7 @@ public class HKOpenApi {
|
901
|
901
|
* @return
|
902
|
902
|
*/
|
903
|
903
|
public static String getPersonInfosEx(Map<String, Object> map){
|
904
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.GETPERSONINFOSEX;
|
|
904
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.GETPERSONINFOSEX;
|
905
|
905
|
Map<String, Object> parMap = new HashMap<>();
|
906
|
906
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
907
|
907
|
parMap.put("time", System.currentTimeMillis());
|
|
@@ -930,7 +930,7 @@ public class HKOpenApi {
|
930
|
930
|
*/
|
931
|
931
|
public static String getDefaultUserUuid(String appkey, String secret, String openapi_ip_port_http){
|
932
|
932
|
Map<String,Object> parMap = Maps.newHashMap();
|
933
|
|
- String url = openapi_ip_port_http == null ? HKConstant.OPENAPI_IP_PORT_HTTP : openapi_ip_port_http + HKConstant.ITF_ADDRESS_GET_DEFAULT_USER_UUID;
|
|
933
|
+ String url = (openapi_ip_port_http == null ? HKConstant.OPENAPI_IP_PORT_HTTP : openapi_ip_port_http) + HKConstant.ITF_ADDRESS_GET_DEFAULT_USER_UUID;
|
934
|
934
|
//设置APPKEY
|
935
|
935
|
parMap.put("appkey", appkey == null?HKConstant.APPKEY:appkey);
|
936
|
936
|
//设置时间参数
|
|
@@ -979,7 +979,7 @@ public class HKOpenApi {
|
979
|
979
|
* 删除当前人脸设备信息
|
980
|
980
|
*/
|
981
|
981
|
public static String deleteUser(Map<String,Object> map) {
|
982
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ITF_DELETE_USER;
|
|
982
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ITF_DELETE_USER;
|
983
|
983
|
Map<String, Object> parMap = new HashMap<String, Object>();
|
984
|
984
|
//设置APPKEY
|
985
|
985
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
|
@@ -1008,7 +1008,7 @@ public class HKOpenApi {
|
1008
|
1008
|
* 查询当前人脸设备信息
|
1009
|
1009
|
*/
|
1010
|
1010
|
public static String selectUserFace(Map<String,Object> map) {
|
1011
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ITF_SELECT_USER;
|
|
1011
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ITF_SELECT_USER;
|
1012
|
1012
|
Map<String, Object> parMap = new HashMap<String, Object>();
|
1013
|
1013
|
//设置APPKEY
|
1014
|
1014
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
|
@@ -1037,7 +1037,7 @@ public class HKOpenApi {
|
1037
|
1037
|
* @return
|
1038
|
1038
|
*/
|
1039
|
1039
|
public static String selectUserSynchronization(Map<String,Object> map) {
|
1040
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ITF_SELECT_USER_SDH;
|
|
1040
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ITF_SELECT_USER_SDH;
|
1041
|
1041
|
Map<String, Object> parMap = new HashMap<String, Object>();
|
1042
|
1042
|
//设置APPKEY
|
1043
|
1043
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|
|
@@ -1064,7 +1064,7 @@ public class HKOpenApi {
|
1064
|
1064
|
* @return
|
1065
|
1065
|
*/
|
1066
|
1066
|
public static String appointJurisdiction(Map<String,Object> map) {
|
1067
|
|
- String url = map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http") + HKConstant.ITF_SELECT_APPOIN;
|
|
1067
|
+ String url = (map.get("openapi_ip_port_http") == null ? HKConstant.OPENAPI_IP_PORT_HTTP : map.get("openapi_ip_port_http")) + HKConstant.ITF_SELECT_APPOIN;
|
1068
|
1068
|
Map<String, Object> parMap = new HashMap<String, Object>();
|
1069
|
1069
|
//设置APPKEY
|
1070
|
1070
|
parMap.put("appkey", map.get("appkey") == null?HKConstant.APPKEY:map.get("appkey"));
|