mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Module.php
This commit is contained in:
parent
a0858a03ac
commit
464faac034
@ -64,7 +64,7 @@ class Module extends Controller
|
|||||||
$pattern = "|^(\d{4})\.(\d{2})\.(\d{2})\.(\d+)$|";
|
$pattern = "|^(\d{4})\.(\d{2})\.(\d{2})\.(\d+)$|";
|
||||||
$this->module['change'] = array_reverse($this->module['change']);
|
$this->module['change'] = array_reverse($this->module['change']);
|
||||||
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日 更新', $version)];
|
||||||
}
|
}
|
||||||
$this->fetch();
|
$this->fetch();
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user