| xqd
@@ -700,7 +700,8 @@ 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('open_id')->get();
|
|
|
+ $count_user = AlbumWatchRecord::where([['agent_id',$user_agent->id],['store_id',$store_id]])->groupBy('open_id')->get();
|
|
|
+ $count = count($count_user);
|
|
|
dd($count);
|
|
|
$action = '';
|
|
|
foreach($res as $key=>$val){
|