wechat = WechatModel::detail($this->applet_id); View::assign('wechat', $this->wechat); } /** * 更新设置事件 */ public function setting() { if (!$this->request->isAjax()) { $model = SettingModel::getItem('webtplmsg',$this->applet_id); return View::fetch('setting', compact('model')); } $model = new SettingModel; if ($model->edit('webtplmsg',$this->postData('data'),$this->applet_id)) { return $this->renderSuccess('更新成功'); } return $this->renderError('更新失败'); } }