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) {