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