feat(admin): 系统配置中文化与缓存刷新

- 站点名称、版本、分类类型、配置分组、附件分类改为中文
- fa_config 配置项标题/提示/默认值统一中文,修正首页配置乱码
- 语言包禁用长缓存,后台文案调整后立即生效
- 站点版本升至 1.0.2,强制刷新后台 JS/CSS 缓存
这个提交包含在:
linda
2026-10-29 09:49:28 +08:00
父节点 b8d2644141
当前提交 9bb74e6e6a
共有 3 个文件被更改,包括 49 次插入 和 20 次删除

查看文件

@@ -40,12 +40,10 @@ class Ajax extends Backend
{
$this->request->get(['callback' => 'define']);
$header = ['Content-Type' => 'application/javascript'];
if (!config('app_debug')) {
$offset = 30 * 60 * 60 * 24; // 缓存一个月
$header['Cache-Control'] = 'public';
$header['Pragma'] = 'cache';
$header['Expires'] = gmdate("D, d M Y H:i:s", time() + $offset) . " GMT";
}
// 语言包随后台文案调整实时生效,禁用长缓存避免浏览器继续使用旧翻译
$header['Cache-Control'] = 'no-cache, no-store, must-revalidate';
$header['Pragma'] = 'no-cache';
$header['Expires'] = '0';
$controllername = $this->request->get('controllername');
$lang = $this->request->get('lang');