$msg]); $log = [ '请求参数' => $_REQUEST, '结果' => $data, ]; Log::log($log); } throw new ApiException($msg, $code); } /** * @return WorkerService */ protected function getWorkerService() { return app(WorkerService::class); } /** * @return Worker */ protected function getWorkerModel() { return app(Worker::class, true); } //{%add function code%} }