dyjh há 6 anos atrás
pai
commit
964b852111
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Http/Controllers/Api/V1/AlbumController.php

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

xqd
@@ -2097,7 +2097,7 @@ class AlbumController extends Controller
             $detail = json_decode($val['detail'],true);
             //dd($detail);die;
             $goods_id = $detail['goods_id'];
-            $goods = AlbumProductModel::where(['id',$goods_id])->first();
+            $goods = AlbumProductModel::where([['id',$goods_id]])->first();
             $count=  AlbumWatchRecord::where([['action',3],['store_id',$store_id],['open_id',$open_id],['detail',$detail]])->count();
             $arr[] = ['name'=>$goods->name,'count'=>$count];
         }