Ver código fonte

PSR12规范化

dyjh 6 anos atrás
pai
commit
813bfc0e15

+ 1 - 1
app/Http/Controllers/Api/V1/AlbumBossController.php

xqd
@@ -848,7 +848,7 @@ class AlbumBossController extends Controller
         }
         $store_id = $request->input('store_id');
 
-        $agent = AlbumAgentModel::where('store_id', $store_id)->orderByDesc('newCount')->select('id', 'user_id', 'realname', 'pointCount', 'callCount', 'favoriteCount', 'get_count', 'share_times', 'newCount')->paginate(12);
+        $agent = AlbumAgentModel::where('store_id', $store_id)->orderByDesc('newCount')->paginate(12);
         foreach ($agent as $value) {
             $user = AlbumUserModel::where([['id', $value->user_id], ['store_id', $store_id]])->first(['avatar']);
             $value->avatar = $user->avatar;