dyjh 6 年之前
父節點
當前提交
76c7174867
共有 1 個文件被更改,包括 2 次插入2 次删除
  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 ",