dyjh hace 6 años
padre
commit
b6cab3c5c7
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      app/Http/Controllers/Api/V1/AlbumController.php

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

xqd
@@ -2485,8 +2485,8 @@ class AlbumController extends Controller
 
             $record = AlbumWatchRecord::where([['agent_id',$user_agent->id],['action',8],['store_id',$data['store_id']]])->get();
 
-            foreach ($record as $key=>$val){dd($val['detail']);
-                $goods = AlbumProductModel::where([['store_id',$data['store_id'].['id',$val['detail']]]])->first();
+            foreach ($record as $key=>$val){
+                $goods = AlbumProductModel::where([['store_id',$data['store_id']],['id',$val['detail']]])->first();
 
                 $style = AlbumProductStyleModel::where([['store_id',$data['store_id'].['id',$goods->style]]])->first();
                 $cat = AlbumCatModel::where([['store_id',$data['store_id'].['id',$goods->cat_id]]])->first();