Ver Fonte

超管权限添加用户

loustwo há 4 anos atrás
pai
commit
f091236bd8
2 ficheiros alterados com 4 adições e 1 exclusões
  1. 3 0
      app/Http/Controllers/TestController.php
  2. 1 1
      config/users.php

+ 3 - 0
app/Http/Controllers/TestController.php

@@ -7,6 +7,7 @@ use App\Components\Database;
 use App\Components\ErrorPush;
 use App\MaterialBox;
 use App\MaterialBoxModel;
+use App\Services\AuthorityService;
 use App\Services\RejectedService;
 use App\User;
 use App\Waybill;
@@ -35,6 +36,8 @@ class TestController extends Controller
     }
     public function test(Request $request)
     {
+        $s = new AuthorityService();
+        $s->removeAdminAuth();
         dd(1);
         Log::error(json_encode($request->header(),JSON_UNESCAPED_UNICODE));
         return json_encode($request->header(),JSON_UNESCAPED_UNICODE);

+ 1 - 1
config/users.php

@@ -1,7 +1,7 @@
 <?php
 
 return [
-    'superAdmin' => ['xuxiaodong','ldaaww','baoshi56','周亚萍','shiyao','zhouzhendong','zengjun',"yang",'huhao','zy','刘媛媛',env('SUPER_ADMIN',"")],
+    'superAdmin' => ['xuxiaodong','ldaaww','baoshi56','周亚萍','shiyao','zhouzhendong','zengjun',"yang",'huhao','zy','刘媛媛','李家磊',env('SUPER_ADMIN',"")],
     'token_expire_minutes'=>7200,
     'token_check_in_expire_minutes'=>432000, //打卡过期时间,单位为秒
     'cookie_expire_minutes'=>7200,//cookie过期时间,单位分钟