task(); }); } public function task() { try { $taskData=Db::table('wa_apply_record') ->where('add_time','<=',time()) ->where('status',1) ->limit(150) ->pluck('id') ->toArray(); foreach ($taskData as $k=>$v){ TaskBusiness::TaskRefund($v); } }catch (\Throwable $exception){ Log::channel('task')->error($exception->getMessage()); } } }