Commit e3f109c26861233ff80fe2188ab421b0e4f66fca

Authored by 陶汉栋
1 parent c535a872
Exists in master

陌生人增加延时操作

cloud/haikangface/src/main/java/com/sincere/haikangface/CMSServer.java
@@ -433,7 +433,6 @@ public class CMSServer implements ApplicationRunner { @@ -433,7 +433,6 @@ public class CMSServer implements ApplicationRunner {
433 if (sc >= 60) { 433 if (sc >= 60) {
434 System.out.println("user_id:" + user_id); 434 System.out.println("user_id:" + user_id);
435 TeacherBean teacherBean = userDao.getTeacherWithUserId1(user_id); 435 TeacherBean teacherBean = userDao.getTeacherWithUserId1(user_id);
436 -  
437 if (null != teacherBean) { 436 if (null != teacherBean) {
438 String date = new SimpleDateFormat("yyyy-MM-dd").format(new Date()); 437 String date = new SimpleDateFormat("yyyy-MM-dd").format(new Date());
439 String time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()); 438 String time = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
@@ -518,6 +517,11 @@ public class CMSServer implements ApplicationRunner { @@ -518,6 +517,11 @@ public class CMSServer implements ApplicationRunner {
518 } 517 }
519 } 518 }
520 } 519 }
  520 + try {
  521 + Thread.sleep(2000);
  522 + } catch (InterruptedException e) {
  523 + e.printStackTrace();
  524 + }
521 } 525 }
522 526
523 HCEHomeAlarm.NET_EHOME_ALARM_LISTEN_PARAM net_ehome_alarm_listen_param = new HCEHomeAlarm.NET_EHOME_ALARM_LISTEN_PARAM(); 527 HCEHomeAlarm.NET_EHOME_ALARM_LISTEN_PARAM net_ehome_alarm_listen_param = new HCEHomeAlarm.NET_EHOME_ALARM_LISTEN_PARAM();