瀏覽代碼

修改的cbt的执行时间

lvhao 6 天之前
父節點
當前提交
f10bf52881
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      core/CoreApp/controllers/QueueCbt.php

+ 2 - 0
core/CoreApp/controllers/QueueCbt.php

@@ -29,6 +29,8 @@ class QueueCbt extends Start_Controller {
         if(date("H") != 20){
         if(date("H") != 20){
             exit("当前不是20点执行".date("H"));
             exit("当前不是20点执行".date("H"));
         }
         }
+        //允许长时间运行
+        set_time_limit(0);
         $where_arr = [
         $where_arr = [
             //"shop"=>35,//当前店铺为tt-wk
             //"shop"=>35,//当前店铺为tt-wk
             "express"=>83,//快递为tt-cbt
             "express"=>83,//快递为tt-cbt