feat(admin): 系统配置中文化与缓存刷新
- 站点名称、版本、分类类型、配置分组、附件分类改为中文 - fa_config 配置项标题/提示/默认值统一中文,修正首页配置乱码 - 语言包禁用长缓存,后台文案调整后立即生效 - 站点版本升至 1.0.2,强制刷新后台 JS/CSS 缓存
这个提交包含在:
@@ -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');
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
<?php
|
||||
|
||||
return [
|
||||
'name' => '我的网站',
|
||||
'name' => '优匠优服',
|
||||
'beian' => '',
|
||||
'cdnurl' => '',
|
||||
'version' => '1.0.1',
|
||||
'version' => '1.0.2',
|
||||
'timezone' => 'Asia/Shanghai',
|
||||
'forbiddenip' => '',
|
||||
'languages' => [
|
||||
@@ -13,22 +13,22 @@ return [
|
||||
],
|
||||
'fixedpage' => 'dashboard',
|
||||
'categorytype' => [
|
||||
'default' => 'Default',
|
||||
'page' => 'Page',
|
||||
'article' => 'Article',
|
||||
'test' => 'Test',
|
||||
'default' => '默认',
|
||||
'page' => '单页',
|
||||
'article' => '文章',
|
||||
'test' => '测试',
|
||||
],
|
||||
'configgroup' => [
|
||||
'basic' => 'Basic',
|
||||
'email' => 'Email',
|
||||
'dictionary' => 'Dictionary',
|
||||
'user' => 'User',
|
||||
'example' => 'Example',
|
||||
'basic' => '基础配置',
|
||||
'email' => '邮箱配置',
|
||||
'dictionary' => '字典配置',
|
||||
'user' => '会员配置',
|
||||
'example' => '示例',
|
||||
],
|
||||
'attachmentcategory' => [
|
||||
'category1' => 'Category1',
|
||||
'category2' => 'Category2',
|
||||
'custom' => 'Custom',
|
||||
'category1' => '分类1',
|
||||
'category2' => '分类2',
|
||||
'custom' => '自定义',
|
||||
],
|
||||
'mail_type' => '1',
|
||||
'mail_smtp_host' => 'smtp.qq.com',
|
||||
|
||||
在新工单中引用
屏蔽一个用户