Pārlūkot izejas kodu

添加停顿 2s

魏熙美 6 gadus atpakaļ
vecāks
revīzija
eb67e02caa

+ 3
- 0
CODE/foreign-service/src/main/java/com/community/huiju/service/impl/FaceServicelimpl.java Parādīt failu

@@ -229,6 +229,9 @@ public class FaceServicelimpl  extends ServiceImpl<TaFaceMapper, TaFace> impleme
229 229
                     map.put("type", 1);
230 230
                     map.put("openapi_ip_port_http", tpEquipmentTree.getHttpServer());
231 231
                     HKOpenApi.downloadFaceAndFingerInfos(map);
232
+
233
+                    // 等待 2s
234
+                    Thread.sleep(2000);
232 235
                 }
233 236
 
234 237
                 // 单元门口机

+ 3
- 0
CODE/smart-community/app-api/src/main/java/com/community/huiju/service/impl/FaceServicelimpl.java Parādīt failu

@@ -261,6 +261,9 @@ public class FaceServicelimpl implements FaceServiceI {
261 261
                     map.put("type", 1);
262 262
                     map.put("openapi_ip_port_http", tpEquipmentTree.getHttpServer());
263 263
                     HKOpenApi.downloadFaceAndFingerInfos(map);
264
+
265
+                    // 等待 2s
266
+                    Thread.sleep(2000);
264 267
                 }
265 268
 
266 269