代码优化

This commit is contained in:
wong
2025-04-23 12:01:49 +08:00
parent 4b5b3a7156
commit 04ec23b09b
7 changed files with 216 additions and 21 deletions

View File

@@ -82,11 +82,11 @@ class GetChatroomListV1Controller extends BaseController
try {
$where = [];
$where[] = ['m.groupId', '=', $groupId];
$where[] = ['m.deleteTime', '=', 0];
$where[] = ['m.deleteTime', '<=', 0];
// 如果有搜索关键词
if (!empty($keyword)) {
$where[] = ['m.nickname|m.identifier', 'like', '%'.$keyword.'%'];
$where[] = ['wa.nickname|m.identifier', 'like', '%'.$keyword.'%'];
}
$data = Db::name('wechat_group_member')