mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-01 23:40:38 +00:00
修改返回数据
This commit is contained in:
parent
966fbac132
commit
a17cd960c6
@ -391,18 +391,14 @@ class SystemCrud extends AuthController
|
||||
foreach ($routeList as $item) {
|
||||
if ($item['methods'] == 'GET') {
|
||||
if (strstr($item['api_url'], 'create')) {
|
||||
$key = 'create';
|
||||
$newRoute['create'] = $item['api_url'];
|
||||
} else if (strstr($item['api_url'], 'edit')) {
|
||||
$key = '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