设备优化

This commit is contained in:
wong
2025-07-19 15:01:40 +08:00
parent c6b22ae362
commit 8d12f5a06a

View File

@@ -196,7 +196,7 @@ class GetWechatsOnDevicesV1Controller extends BaseController
// 关键词搜索(同时搜索微信号和昵称)
if (!empty($keyword = $this->request->param('keyword'))) {
$where[] = ['exp', "w.alias LIKE '%{$keyword}%' OR w.nickname LIKE '%{$keyword}%'"];
$where[] = ["w.wechatId|w.alias|w.nickname", 'LIKE', '%' . $keyword . '%'];
}
$where['w.wechatId'] = array('in', implode(',', $wechatIds));