title = '开放平台配置'; $this->fetch(); } /** * 修改平台配置 * @throws \think\Exception * @throws \think\exception\PDOException */ public function edit() { $this->applyCsrfToken(); if ($this->request->isGet()) { $this->fetch('form'); } else { $post = $this->request->post(); foreach ($post as $k => $v) sysconf($k, $v); $this->success('开放平台参数修改成功!'); } } }