getPrivacyInterface($this->applet_id); return View::fetch('index', compact('list')); } /** * 添加 */ public function add() { if ($this->request->isPost()) { $wx = new Driver; $data = $this->postData('data'); $data['url_list'] = [base_url()]; if ($wx->applyPrivacyInterface($this->applet_id,$data)) { return $this->renderSuccess('操作成功', url('wxapp.privacy.position/index')); } $error = $wx->getError() ?: '操作失败'; return $this->renderError($error); } return redirect(url('wxapp.privacy.position/index')); } }