protected function init() { if (!$this->app_id && $this->app_adapter) { $this->app_id = $this->app_adapter->getAppId(); } if (!$this->app_id) { $this->app_id = wa()->getApp(); } if ($this->key) { $this->setSettings($this->getAdapter()->getSettings($this->id, $this->key)); } }
protected function init() { $this->app_id = 'shop'; parent::init(); }