Browse Source

Merge branch 'master' of http://local.beijingyongan.com:3000/linux-dev/ya-serv

chensongchao 6 years ago
parent
commit
3c96940c35
1 changed files with 2 additions and 1 deletions
  1. 2 1
      forbid_staff_down_mine.cpp

+ 2 - 1
forbid_staff_down_mine.cpp

@@ -57,6 +57,7 @@ void forbid_staff_down_mine::init_forbid_staff(int id /* = -1*/)
                 }
                 if (f) continue;
             }
+            if(f)continue;
         }
         else
         {
@@ -101,7 +102,7 @@ void forbid_staff_down_mine::del_forbid_data(int id,int staff_id)
 //是否禁止状态
 bool forbid_staff_down_mine::IsForbid(int staff_id,time_t cur_time)
 {
-    auto flist = m_map;
+    auto flist = forbid_staff_down_mine::instance()->m_map;
     auto it = flist.find(staff_id);
     if (it != flist.end())
     {