优化客服列表(30天没有在线不显示)

This commit is contained in:
wong
2025-11-13 16:08:44 +08:00
parent dfe4ff076d
commit a74f9b9557

View File

@@ -21,8 +21,12 @@ class CustomerServiceController extends BaseController
// 确保即使有空数组也不会报错,并且去除重复值
$accountIds = array_unique(array_merge($accountIds1 ?: [], $accountIds2 ?: []));
$wechatAliveTime = time() - 86400 * 30;
$list = Db::table('s2_wechat_account')
->whereIn('id',$accountIds)
->where('wechatAliveTime','>',$wechatAliveTime)
->order('id desc')
->group('id')
->select();