From 8775df629d151661345cbd23e6353438b939ef7c Mon Sep 17 00:00:00 2001 From: mkm <727897186@qq.com> Date: Thu, 24 Aug 2023 13:42:45 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/api/controller/CeshiController.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/api/controller/CeshiController.php b/app/api/controller/CeshiController.php index 2107c3ac7..478b23bfe 100644 --- a/app/api/controller/CeshiController.php +++ b/app/api/controller/CeshiController.php @@ -15,6 +15,9 @@ class CeshiController extends BaseApiController { public array $notNeedLogin = ['index','ceshi','ceshi1','ceshi2']; + /** + * 任务结算 + */ public function index() { // $all=TaskSchedulingPlan::whereDay('end_time','yesterday')->where('is_pay',0)->with(['template_info','scheduling'])->select()->toArray(); @@ -26,12 +29,15 @@ class CeshiController extends BaseApiController halt(1); } + /** + * 任务刷新 + */ public function ceshi(){ $time=strtotime(date('Y-m-d')); // $time=strtotime(date('Y-m-d')); - // $tiem_end=$time+86399; - $all=TaskTemplate::where('cron_time','<',$time)->where('status',1)->with('company')->select()->toArray(); + // $tiem_end=$time+86399;where('cron_time','<',$time)-> + $all=TaskTemplate::where('status',1)->with('company')->select()->toArray(); // $all=TaskTemplate::where('id',73)->with('company')->select()->toArray(); // $all=TaskSchedulingPlan::where('start_time','between',[$time,$tiem_end])->where('is_execute',0)->with(['template_info','scheduling'])->select()->toArray(); $company_id=0;