name = $name; $this->oaTags = $oaTags; $this->oaDescription = $oaDescription; $this->app = $app; $this->ip = $ip; $this->ipLocation = $ipLocation; $this->browser = $browser; $this->os = $os; $this->url = $url; $this->className = $className; $this->action = $action; $this->method = $method; $this->param = $param; $this->result = $result; $this->userName = $userName; $this->userId = $userId; } /** * 触发事件 */ public function dispatch(): void { Event::emit('adminapi.operation.log', $this); } }