Parcourir la source

add view=system

visuddhinanda il y a 2 ans
Parent
commit
5f1fbd60ba
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  1. 4 0
      app/Http/Controllers/ChannelController.php

+ 4 - 0
app/Http/Controllers/ChannelController.php

@@ -162,6 +162,10 @@ class ChannelController extends Controller
                         ->whereIn('uid', $channelId)
                         ->orWhere('owner_uid',$user['user_uid']);
                 break;
+            case 'system':
+                $table = Channel::select($indexCol)
+                            ->where('owner_uid',config("mint.admin.root_uuid"));
+                break;
         }
         //处理搜索
         if($request->has("search")){