mirror of https://gitee.com/karson/fastadmin.git
添加admin_log表
parent
6edcaffa75
commit
f05e5ae722
|
|
@ -26,7 +26,8 @@ class Crud extends Command
|
||||||
* 受保护的系统表,crud不会生效
|
* 受保护的系统表,crud不会生效
|
||||||
*/
|
*/
|
||||||
protected $systemTable = [
|
protected $systemTable = [
|
||||||
'admin', 'attachment', 'auth_group', 'auth_group_access', 'auth_rule', 'category', 'config'
|
'admin','admin_log','auth_group','auth_group_access','auth_rule',
|
||||||
|
'attachment', 'config','category'
|
||||||
];
|
];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -313,7 +314,7 @@ class Crud extends Command
|
||||||
if(in_array(str_replace($prefix,"",$table),$this->systemTable)){
|
if(in_array(str_replace($prefix,"",$table),$this->systemTable)){
|
||||||
throw new Exception('system table name can\'t crud');
|
throw new Exception('system table name can\'t crud');
|
||||||
}
|
}
|
||||||
|
|
||||||
//模块
|
//模块
|
||||||
$moduleName = 'admin';
|
$moduleName = 'admin';
|
||||||
$modelModuleName = $local ? $moduleName : 'common';
|
$modelModuleName = $local ? $moduleName : 'common';
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue