群、好友支持客服微信号筛选

This commit is contained in:
wong
2025-12-11 17:32:27 +08:00
parent 61926503cf
commit b2760cde0e
2 changed files with 12 additions and 2 deletions

View File

@@ -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();