| xqd
@@ -296,12 +296,13 @@ class AlbumBossController extends Controller
|
|
|
['updated_at','<=',$end]
|
|
|
])->orderByDesc('id')->count();
|
|
|
|
|
|
- $totalCustomerCount = AlbumWatchRecord::where([
|
|
|
+ $totalCustomer = AlbumWatchRecord::where([
|
|
|
['agent_id', $data['agent_id']],
|
|
|
['store_id', $data['store_id']],
|
|
|
['updated_at','>=',$start],
|
|
|
['updated_at','<=',$end]
|
|
|
- ])->orderByDesc('id')->groupBy('open_id')->count();
|
|
|
+ ])->orderByDesc('id')->groupBy('open_id')->all();
|
|
|
+ $totalCustomerCount = count($totalCustomer);
|
|
|
|
|
|
return $this->api(compact('shareCount', 'totalCustomerCount', 'newCustomerCount', 'downloadCount', 'favoriteCount'));
|
|
|
}
|