mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-31 06:50:51 +00:00
更新同步路由
This commit is contained in:
parent
0999344a0e
commit
80eb0ecaa3
@ -266,11 +266,14 @@ class SystemRouteServices extends BaseServices
|
||||
foreach ($list as $key => $value) {
|
||||
foreach ($value as $item) {
|
||||
if (!$this->diffRoute($data, $item['rule'], $item['method']) && strstr($item['rule'], '<MISS>') === false) {
|
||||
$pathAndAction = explode('/', $item['route']);
|
||||
$save[] = [
|
||||
'name' => $item['option']['real_name'] ?? $item['name'],
|
||||
'path' => $item['rule'],
|
||||
'cate_id' => $key,
|
||||
'app_name' => $app,
|
||||
'file_path' => 'app/' . $app . '/controller/' . str_replace('.', '/', $pathAndAction[0]) . '.php',
|
||||
'action' => $pathAndAction[1],
|
||||
'type' => isset($item['option']['is_common']) && $item['option']['is_common'] ? 1 : 0,
|
||||
'method' => $item['method'],
|
||||
'add_time' => date('Y-m-d H:i:s'),
|
||||
@ -305,6 +308,7 @@ class SystemRouteServices extends BaseServices
|
||||
app()->make(SystemMenusServices::class)->deleteMenu($item['path'], $item['method']);
|
||||
}
|
||||
}
|
||||
$this->cacheDriver()->clear();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user