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
172fa400dc
commit
51b15bfc30
@ -56,10 +56,10 @@ class Module extends Controller
|
|||||||
public function change()
|
public function change()
|
||||||
{
|
{
|
||||||
$data = $this->_vali(['name.require' => '模块名称不能为空!']);
|
$data = $this->_vali(['name.require' => '模块名称不能为空!']);
|
||||||
$modules = ModuleService::instance()->online();
|
$online = ModuleService::instance()->online();
|
||||||
$locals = ModuleService::instance()->getModules();
|
$locals = ModuleService::instance()->getModules();
|
||||||
if (isset($modules[$data['name']])) {
|
if (isset($online[$data['name']])) {
|
||||||
$this->module = $modules[$data['name']];
|
$this->module = $online[$data['name']];
|
||||||
$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+)$|";
|
||||||
$this->module['change'] = array_reverse($this->module['change']);
|
$this->module['change'] = array_reverse($this->module['change']);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user