组员客户关键字

This commit is contained in:
2025-08-14 20:02:40 +08:00
parent 1fba636779
commit 2e94a17d11
+5 -5
View File
@@ -160,11 +160,11 @@ class CustomerService
} // 关键字
if (isset($p['keyword']) && $p['keyword']) {
$k = '%' . $p['keyword'] . '%';
$config['where']['contacts'] = ['like', $k];
$config['where']['phone'] = ['like', $k];
$config['where']['email'] = ['like', $k];
$config['where']['WhatsApp'] = ['like', $k];
$config['where']['code'] = ['like', $k];
$config['orWhere'][] = ['contacts','like', $k];
$config['orWhere'][] = ['phone','like', $k];
$config['orWhere'][] = ['email','like', $k];
$config['orWhere'][] = ['WhatsApp','like', $k];
$config['orWhere'][] = ['code','like', $k];
}
$config['order']['id'] = 'desc';
$config['dataLimit']['type'] = 'relation';