Browse Source

修改,优化重连

chensongchao 6 years ago
parent
commit
72735db974
2 changed files with 1 additions and 3 deletions
  1. 0 1
      forbid_staff_down_mine.cpp
  2. 1 2
      websocket/wsClient.cpp

+ 0 - 1
forbid_staff_down_mine.cpp

@@ -55,7 +55,6 @@ void forbid_staff_down_mine::init_forbid_staff(int id /* = -1*/,int etype)
                                 ,key,staff_id,state,start_time.c_str(),end_time.c_str());
                     break;
                 }
-                if (f) continue;
             }
             if(f)continue;
             //ET_UPDATE

+ 1 - 2
websocket/wsClient.cpp

@@ -3,7 +3,6 @@
 #include <thread>
 #include <chrono>
 #include <boost/locale.hpp>
-#include <tool_time.h>
 #include"log.h"
 
 
@@ -85,7 +84,7 @@ namespace YA
 			}
 			else
 			{
-			    unsigned int cur_time = tool_time::now_to_seconds();
+			    unsigned int cur_time = time(0);
 				__connet_time = cur_time;
 				__recv_ping_time = cur_time;
 				nRet = 0;