replace = [ 'CIRCLE_CSS' => __ROOT__ . '/addon/goodscircle/shop/view/public/css', 'CIRCLE_JS' => __ROOT__ . '/addon/goodscircle/shop/view/public/js', 'CIRCLE_IMG' => __ROOT__ . '/addon/goodscircle/shop/view/public/img', ]; } public function index() { $config_model = new ConfigModel(); if (request()->isAjax()) { $data = []; $is_use = input('is_use', 0); return $config_model->setGoodscircleConfig($data, $is_use, $this->site_id); } else { $config = $config_model->getGoodscircleConfig($this->site_id); $this->assign('config', $config['data']); return $this->fetch("config/index", [], $this->replace); } } }