更新
This commit is contained in:
parent
6303fa6294
commit
8775df629d
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user