likang 2 years ago
parent
commit
9c257f9a56
2 changed files with 5 additions and 1 deletions
  1. 4 0
      catch/worklocation/model/WorkLocation.php
  2. 1 1
      catch/worklocation/route.php

+ 4 - 0
catch/worklocation/model/WorkLocation.php

@@ -142,6 +142,10 @@ class Worklocation extends Model
         $value = Db::name('sys_dict_data')->where($where)->value('value');
         return $value;
     }
+    public function test()
+    {
+       return null;
+    }
    //搜索
 
 //    public function searchNumberAttr($query, $value, $data)

+ 1 - 1
catch/worklocation/route.php

@@ -12,5 +12,5 @@
 // you should use `$router`
 $router->group(function () use ($router){
 	// workLocation路由
-	$router->resource('workLocation', '\catchAdmin\worklocation\controller\WorkLocation');
+	$router->resource('worklocation', '\catchAdmin\worklocation\controller\WorkLocation');
 })->middleware('auth');