wugg 8 months ago
parent
commit
4db566dc0f
2 changed files with 3 additions and 3 deletions
  1. 1 1
      app/admin/controller/Base.php
  2. 2 2
      app/command/makeModel.php

+ 1 - 1
app/admin/controller/Base.php

@@ -9,7 +9,7 @@ use think\App;
 
 class Base extends BaseController
 {
-   protected $noLogin=["*"];
+   protected $noLogin=[];
    protected $uid=0;
    protected $uname="system";
    protected $roleid=0;

+ 2 - 2
app/command/makeModel.php

@@ -18,7 +18,7 @@ class makeModel extends Command
             ->setDescription('the makemodel command');
     }
 	static $schema = 'sys_user_pre_release';
-	static $prefix = 'sys';
+	static $prefix = 'Sys';
 	static $epp = 'user';
     protected function execute(Input $input, Output $output)
     {
@@ -66,7 +66,7 @@ class makeModel extends Command
     
     private static function snakeToCamel($str, $capitalized = true)
             {
-                $result = ucwords(str_replace(['_',self::$prefix], ['',""],$str),"_");
+                $result =str_replace(['_',self::$prefix], ['',""],ucwords($str,"_"),);
                 echo $result."--";
                 echo str_replace(['_',self::$prefix], ['',''],$str);
                 if (!$capitalized) {