dyjh %!s(int64=6) %!d(string=hai) anos
pai
achega
d1d3163a6d
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/Http/Controllers/Api/V1/AlbumController.php

+ 2 - 1
app/Http/Controllers/Api/V1/AlbumController.php

xqd
@@ -2248,8 +2248,9 @@ class AlbumController extends Controller
             if(!$goods){
                 unset($res[$key]);continue;
             }
-            dd($res);
+
             $res[$key]['name'] = $goods->name;
+            dd($res);
             $res[$key]['count'] = AlbumFavoriteModel::whereIn('user_id',$users)->where([['store_id',$store_id],['product_id',$val['product_id']]])->count();
         }
         return $this->api($res,0,'success');