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

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

xqd xqd
@@ -1041,7 +1041,7 @@ class AlbumController extends Controller
        // if($userAuth->up_agent_id==0) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '未选择经销商!', $validator->messages());
         $user_agent = AlbumAgentModel::where('user_id',$userAuth->id)->first();
         $count_user = AlbumWatchRecord::where([['agent_id',$user_agent->id],['store_id',$store_id]])->groupBy('open_id')->get();
-        
+
         $users = Array();
         if($count_user){
             foreach($count_user as $key=>$val){
@@ -2085,6 +2085,7 @@ class AlbumController extends Controller
         $arr = array();
         foreach ($res as $key=>$val){
             $detail = json_encode($val['detail'],true);
+            dd($detail);die;
             $goods_id = $detail['goods_id'];
             $goods = AlbumProductModel::where(['id',$goods_id])->first();
             $count=  AlbumWatchRecord::where([['action',3],['store_id',$store_id],['open_id',$open_id],['detail',$detail]])->count();