dyjh пре 6 година
родитељ
комит
3f79e30a93
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/Http/Controllers/Api/V1/AlbumPosterController.php

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

xqd
@@ -71,7 +71,7 @@ class AlbumPosterController extends Controller
             return $this->validatorError($validator->messages()->all(), ErrorCode::CLIENT_WRONG_PARAMS, '');
         }
         $store_id = $request->input('store_id');
-        $info = AlbumPosterModel::where('store_id', $store_id)->first()->toArray();
+        $info = AlbumPosterModel::where('store_id', $store_id)->all()->toArray();
         $WeChatApp = AlbumManufacturerModel::where('store_id', $store_id)->first();
         if ($userAuth->is_dealer != 1) {
             if ($userAuth->up_agent_id == 0) {