更新
This commit is contained in:
parent
8546d574ec
commit
87b9e0a9f9
@ -40,14 +40,14 @@ class CeshiController extends BaseApiController
|
||||
$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;
|
||||
$company_id=[];
|
||||
foreach($all as $k=>$v){
|
||||
TaskLogic::CronAdd($v);
|
||||
$company_id=$v['company_id'];
|
||||
// TaskLogic::CronAdd($v);
|
||||
$company_id[]=$v['company_id'];
|
||||
}
|
||||
if($company_id!=0){
|
||||
|
||||
Company::where('id',$company_id)->inc('day_count')->update();
|
||||
$arr=array_unique($company_id);
|
||||
if(count($arr)){
|
||||
Company::where('id','in',$arr)->inc('day_count')->update();
|
||||
}
|
||||
}
|
||||
|
||||
@ -74,10 +74,10 @@ class CeshiController extends BaseApiController
|
||||
}
|
||||
}
|
||||
|
||||
public function ceshi2(){
|
||||
$
|
||||
$b=app(RemoteController::class)->shang_date_list('');
|
||||
// public function ceshi2(){
|
||||
// $
|
||||
// $b=app(RemoteController::class)->shang_date_list('');
|
||||
|
||||
}
|
||||
// }
|
||||
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user