浏览代码

Update api

dyjh 6 年之前
父节点
当前提交
a1c9f1512b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Http/Controllers/Api/V1/AlbumController.php

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

xqd
@@ -700,7 +700,7 @@ class AlbumController extends Controller
         if($userAuth->is_dealer!=1) return $this->error(ErrorCode::CLIENT_WRONG_PARAMS, '该用户不是经销商!', $validator->messages());
         $user_agent = AlbumAgentModel::where('user_id',$userAuth->id)->first();
         $res = AlbumWatchRecord::where([['agent_id',$user_agent->id],['store_id',$store_id]])->get();
-        $count = AlbumWatchRecord::where([['agent_id',$user_agent->id],['store_id',$store_id]])->groupBy('wechat_open_id')->count();
+        $count = AlbumWatchRecord::where([['agent_id',$user_agent->id],['store_id',$store_id]])->groupBy('open_id')->count();
         dd($count);
         $action = '';
         foreach($res as $key=>$val){