修改模块配置

This commit is contained in:
Anyon 2020-08-17 15:44:03 +08:00
parent 5d523feaa5
commit a4bf5f598f
4 changed files with 10 additions and 8 deletions

View File

@ -58,8 +58,11 @@ class Module extends Controller
$modules = ModuleService::instance()->online();
if (isset($modules[$data['name']])) {
$this->module = $modules[$data['name']];
foreach ($this->module['changes'] as $key => &$change) {
$change['datetime'] = preg_replace("|^(\d{4})\.(\d{2})\.(\d{2}).*?$|", '$1年$2月$3日', $key);
foreach ($this->module['change'] as $key => &$change) {
$change = [
'datetime' => preg_replace("|^(\d{4})\.(\d{2})\.(\d{2}).*?$|", '$1年$2月$3日', $key),
'content' => $change,
];
}
$this->fetch();
} else {

View File

@ -1,2 +1,2 @@
# 系统模块初始化成功
* 系统模块初始化成功
* 这次更新了许多内容哦

View File

@ -15,13 +15,12 @@
</tr>
</table>
<ul class="layui-timeline margin-top-30 margin-bottom-30" style="max-height:400px;overflow:auto">
{foreach $module.changes as $key=>$vo}
{foreach $module.change as $version=>$change}
<li class="layui-timeline-item">
<i class="layui-icon layui-timeline-axis">&#xe63f;</i>
<div class="layui-timeline-content layui-text">
<h3 class="layui-timeline-title">{$vo.datetime|default=''}</h3>
<p>模块版本:{$key|default=''}</p>
<p>更新描述:{$vo.content|default=''}</p>
<h3 class="layui-timeline-title">版本号 {$version|default=''},于 {$change.datetime|default=''} 更新</h3>
{$change.content|default=''|raw}
</div>
</li>
{/foreach}

View File

@ -1,2 +1,2 @@
# 微信模块初始化成功
* 微信模块初始化成功
* 这次更新了许多内容哦