|
@@ -93,6 +93,7 @@ class AlbumBossController extends Controller
|
|
* @apiVersion 0.1.0
|
|
* @apiVersion 0.1.0
|
|
* @apiParam {int} [store_id] 商户id
|
|
* @apiParam {int} [store_id] 商户id
|
|
* @apiParam {int} [agent_id] 经销商id
|
|
* @apiParam {int} [agent_id] 经销商id
|
|
|
|
+ * @apiParam {int} [pageNum] 分页
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* @apiSuccessExample {json} Success-Response:
|
|
* HTTP/1.1 200 OK
|
|
* HTTP/1.1 200 OK
|
|
* {
|
|
* {
|
|
@@ -163,9 +164,6 @@ class AlbumBossController extends Controller
|
|
])->groupBy('open_id')->get();
|
|
])->groupBy('open_id')->get();
|
|
$i = 0;
|
|
$i = 0;
|
|
foreach ($userCount as $value) {
|
|
foreach ($userCount as $value) {
|
|
- if ($i >= (($data['pageNum'] + 1) * 20)) {
|
|
|
|
- break;
|
|
|
|
- }
|
|
|
|
if ($i >= ($data['pageNum'] * 20) && $i < (($data['pageNum'] + 1) * 20)) {
|
|
if ($i >= ($data['pageNum'] * 20) && $i < (($data['pageNum'] + 1) * 20)) {
|
|
$user = AlbumUserModel::where('open_id', $value->open_id)->first(['avatar', 'username', 'address']);
|
|
$user = AlbumUserModel::where('open_id', $value->open_id)->first(['avatar', 'username', 'address']);
|
|
$userComment = CustomerDetailsModel::where('open_id', $value->open_id)->first(['comment']);
|
|
$userComment = CustomerDetailsModel::where('open_id', $value->open_id)->first(['comment']);
|
|
@@ -175,8 +173,8 @@ class AlbumBossController extends Controller
|
|
'username' => $user->username,
|
|
'username' => $user->username,
|
|
'address' => $user->address
|
|
'address' => $user->address
|
|
];
|
|
];
|
|
- $i++;
|
|
|
|
}
|
|
}
|
|
|
|
+ $i++;
|
|
}
|
|
}
|
|
|
|
|
|
return $this->api(compact('agent', 'customer'), 0, 'success');
|
|
return $this->api(compact('agent', 'customer'), 0, 'success');
|