Browse Source

添加admin_log表

wanger 4 years ago
parent
commit
f05e5ae722
1 changed files with 3 additions and 2 deletions
  1. 3 2
      application/admin/command/Crud.php

+ 3 - 2
application/admin/command/Crud.php

@@ -26,7 +26,8 @@ class Crud extends Command
      * 受保护的系统表,crud不会生效
      */
     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)){
             throw new Exception('system table name can\'t crud');
         }
-        
+
         //模块
         $moduleName = 'admin';
         $modelModuleName = $local ? $moduleName : 'common';