Your Name 3 years ago
parent
commit
496768aedf
1 changed files with 3 additions and 1 deletions
  1. 3 1
      tool/work/lib/Cron.php

+ 3 - 1
tool/work/lib/Cron.php

@@ -55,7 +55,9 @@ Class Cron
             $people = $admin[1];
         }
         $data['info']['yi'] = Dever::db('work/info')->getCount(array('fpeople'=>$people,'start'=>$start,'end'=>$end,'status'=>'3,4'));
-
+        if ($data['info']['app'] == 0 && $data['info']['xu'] == 0 && $data['info']['yi'] ==0 ) {
+            return false;
+        }
         $data['question'] = Dever::db('work/question')->getAll(array('branch_id'=>$dbranch['group_id']));
         $question = implode(',',$question);
         if ($question) {