assign("theme_list", $themeList); return $this->fetch(); } /** * 更新主题 * @return string * @throws Exception * @author 木子的忧伤 * @date 2021-02-17 11:40 */ public function change_theme(): string { $data = Util::postMore([ ['value', ''], ]); if ($data['value'] == "") return app("json")->fail("主题不能为空"); $res = cModel::update($data, ['form_name' => 'web_template']); cache(Data::DATA_SYSTEM_CONFIG, null);//清除缓存 return $res ? app("json")->success("操作成功", 'code') : app("json")->fail("操作失败"); } }