request->isAjax()) { return $this->view->fetch(); } if ('GET' === $this->request->method()) { $configs = ShoproConfig::getConfigs('wechat.officialAccount', false); $configs['server_url'] = request()->domain() . '/addons/shopro/wechat.serve'; } elseif ('POST' === $this->request->method()) { $configs = ShoproConfig::setConfigs('wechat.officialAccount', $this->request->param()); } $this->success('操作成功', null, $configs); } }