mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
修改模块配置
This commit is contained in:
parent
5d523feaa5
commit
a4bf5f598f
@ -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 {
|
||||
|
@ -1,2 +1,2 @@
|
||||
# 系统模块初始化成功
|
||||
* 系统模块初始化成功
|
||||
* 这次更新了许多内容哦
|
@ -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"></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}
|
||||
|
@ -1,2 +1,2 @@
|
||||
# 微信模块初始化成功
|
||||
* 微信模块初始化成功
|
||||
* 这次更新了许多内容哦
|
Loading…
x
Reference in New Issue
Block a user