applyCsrfToken(); $this->title = '商城参数配置'; if ($this->request->isGet()) { $this->query = ExtendService::querySmsBalance(); $this->fetch(); } else { foreach ($this->request->post() as $k => $v) sysconf($k, $v); $this->success('商城参数配置保存成功!'); } } /** * 商城短信配置 * @throws \think\Exception * @throws \think\exception\PDOException */ public function sms() { $this->applyCsrfToken(); $this->title = '商城短信配置'; if ($this->request->isGet()) { $this->query = ExtendService::querySmsBalance(); $this->fetch(); } else { foreach ($this->request->post() as $k => $v) sysconf($k, $v); $this->success('商城短信配置保存成功!'); } } }