mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改系统模板
This commit is contained in:
parent
ef63ee2eed
commit
ac2c00bd59
app/admin
@ -62,7 +62,7 @@ class Module extends Controller
|
|||||||
$this->current = $locals[$data['name']] ?? [];
|
$this->current = $locals[$data['name']] ?? [];
|
||||||
$pattern = "|^(\d{4})\.(\d{2})\.(\d{2})\.(\d+)$|";
|
$pattern = "|^(\d{4})\.(\d{2})\.(\d{2})\.(\d+)$|";
|
||||||
foreach ($this->module['change'] as $version => &$change) {
|
foreach ($this->module['change'] as $version => &$change) {
|
||||||
$change = ['content' => $change, 'version' => preg_replace($pattern, '于 $1年$2月$3日 第$4次更新', $version)];
|
$change = ['content' => $change, 'version' => preg_replace($pattern, '于 $1年$2月$3日 第 $4 次更新', $version)];
|
||||||
}
|
}
|
||||||
$this->fetch();
|
$this->fetch();
|
||||||
} else {
|
} else {
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
return [
|
return [
|
||||||
'name' => 'admin',
|
'name' => 'admin',
|
||||||
'author' => 'Anyon',
|
'author' => 'Anyon',
|
||||||
'version' => '2020.08.03.00',
|
'version' => '2020.08.03.01',
|
||||||
'content' => 'ThinkAdmin 系统基础模块',
|
'content' => 'ThinkAdmin 系统基础模块',
|
||||||
];
|
];
|
Loading…
x
Reference in New Issue
Block a user