群、好友支持客服微信号筛选
This commit is contained in:
@@ -14,7 +14,8 @@ class WechatFriendController extends BaseController
|
||||
$page = $this->request->param('page', 1);
|
||||
$limit = $this->request->param('limit', 10);
|
||||
$keyword = $this->request->param('keyword', '');
|
||||
$groupIds = $this->request->param('groupIds', '');
|
||||
$groupIds = $this->request->param('groupId', '');
|
||||
$ownerWechatId = $this->request->param('ownerWechatId', '');
|
||||
$accountId = $this->getUserInfo('s2_accountId');
|
||||
if (empty($accountId)) {
|
||||
return ResponseHelper::error('请先登录');
|
||||
@@ -38,6 +39,10 @@ class WechatFriendController extends BaseController
|
||||
$query->where('groupIds', $groupIds);
|
||||
}
|
||||
|
||||
if (!empty($ownerWechatId)) {
|
||||
$query->where('ownerWechatId', $ownerWechatId);
|
||||
}
|
||||
|
||||
$query->order('id desc');
|
||||
$total = $query->count();
|
||||
$list = $query->page($page, $limit)->select();
|
||||
|
||||
Reference in New Issue
Block a user