logs = $logs; } /** * Execute the job. * * @return void */ public function handle() { if (!empty($this->logs)) { foreach ($this->logs as $log) { $this->getRepo()->updateAgentAttrsOnceByRootOrder($log['log_id'], $log['old_log']); } } } /** * 发送通知, 重新读取数据然后拼接数据,发送邮箱或者tg. */ private function notify() { // Todo 发送通知, 重新读取数据然后拼接数据,发送邮箱或者tg. } /** * 获取仓库. * @return StatisticsPayRepository */ private function getRepo() { if (!$this->repo instanceof StatisticsPayRepository) { $this->repo = new StatisticsPayRepository(); } return $this->repo; } }