diff --git a/app/admin/controller/Module.php b/app/admin/controller/Module.php index 70561751c..0ab1f0829 100644 --- a/app/admin/controller/Module.php +++ b/app/admin/controller/Module.php @@ -62,7 +62,7 @@ class Module extends Controller $this->current = $locals[$data['name']] ?? []; $pattern = "|^(\d{4})\.(\d{2})\.(\d{2})\.(\d+)$|"; 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(); } else { diff --git a/app/admin/view/module/change.html b/app/admin/view/module/change.html index 457f4a2d7..9476e285e 100644 --- a/app/admin/view/module/change.html +++ b/app/admin/view/module/change.html @@ -1,6 +1,6 @@
-
+
模块名称:{$module.name}
开发作者:{$module.author}
@@ -9,7 +9,7 @@
最新版本:{$module.version}
{if isset($current.version)}已安装版本:{$current.version}{/if}
-
模块描述:{$module.content}
+
模块描述:{$module.content}
    {foreach $module.change as $version=>$change} @@ -20,7 +20,9 @@ {/if}
    -

    版本号 {$version},{$change.version|default=''}

    +

    + 版本号 {$version} {$change.version|default=''} +

    {$change.content|default=''|raw}