sugangqiang 2 năm trước cách đây
mục cha
commit
ea2f68a101
1 tập tin đã thay đổi với 6 bổ sung3 xóa
  1. 6 3
      app/command/ExpireVerifyChecker.php

+ 6 - 3
app/command/ExpireVerifyChecker.php

@@ -29,11 +29,14 @@ class ExpireVerifyChecker extends Command {
     }
 
     protected function execute(Input $input, Output $output) {
+        $data["id"] = 2;
+        $data["updateTime"] = date("Y-m-d H:i:s");
+        Db::table("new_schedule")->save($data);exit();
         $where = [];
-        $where[] = ["active","=",1];
-        $where[] = ["type","=", \app\common\state\ProjectState::TALENT];
+        $where[] = ["active", "=", 1];
+        $where[] = ["type", "=", \app\common\state\ProjectState::TALENT];
         $batch = \app\common\model\Batch::where($where)->find();
-        if($batch && $batch["submitEndTime"] && strtotime($batch["submitEndTime"]) < time()){
+        if ($batch && $batch["submitEndTime"] && strtotime($batch["submitEndTime"]) < time()) {
             //存在激活的批次,并且有设置提交截止时间,且已经超过截止时间,则检查此批次的申报是否存在尚在审批的申请(不包括通过复审的申请),全部以失败处置
         }