lizhen_gitee 1 rok pred
rodič
commit
1a16481533
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      application/index/controller/Plantask.php

+ 1 - 1
application/index/controller/Plantask.php

@@ -59,7 +59,7 @@ class Plantask extends Controller
     public function auto_user_active(){
         $actitime = time() - 7200;
 
-        $sql = 'update `mt_user` set is_active = 0 where id in (select user_id from mt_user_active where requesttime < '.$actitime.')';
+        $sql = 'update `mt_user` set is_active = 0 where is_active = 1 and id in (select user_id from mt_user_active where requesttime < '.$actitime.')';
         db()->query($sql);
     }