mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-10-29 22:10:49 +00:00
Merge branch 'v5.0.0dev' of https://gitee.com/ZhongBangKeJi/CRMEB into v5.0.0dev
This commit is contained in:
commit
f34938613b
@ -390,19 +390,15 @@ class SystemCrud extends AuthController
|
||||
$newRoute = [];
|
||||
foreach ($routeList as $item) {
|
||||
if ($item['methods'] == 'GET') {
|
||||
if (strstr('create', $item['api_url'])) {
|
||||
$key = 'create';
|
||||
} else if (strstr('edit', $item['api_url'])) {
|
||||
$key = 'edit';
|
||||
if (strstr($item['api_url'], 'create')) {
|
||||
$newRoute['create'] = $item['api_url'];
|
||||
} else if (strstr($item['api_url'], 'edit')) {
|
||||
$newRoute['edit'] = $item['api_url'];
|
||||
} else {
|
||||
$key = 'index';
|
||||
$newRoute['index'] = $item['api_url'];
|
||||
}
|
||||
} else if ($item['methods'] == 'DELETE') {
|
||||
$key = 'delete';
|
||||
}
|
||||
|
||||
if (isset($key)) {
|
||||
$newRoute[$key] = $item['api_url'];
|
||||
$newRoute['delete'] = $item['api_url'];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user