dyjh 6 năm trước cách đây
mục cha
commit
76c7174867
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  1. 2 2
      app/Http/Controllers/Api/V1/AlbumController.php

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

xqd
@@ -2488,8 +2488,8 @@ class AlbumController extends Controller
             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();
+                $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();
                 $user = AlbumUserModel::where([['open_id',$val['open_id']],['store_id',$data['store_id']]])->first();
                 $res[] = [
                     'content' => "$user->username 分享了 $style->name $cat->name $goods->name ",