插件 | 建站系统 V3.22 |
应用作者 | 迅睿官方团队 |
发布时间 | 2022-03-01 15:30:06 |
更新时间 | 2025-06-10 14:31:10 |
$result = \Phpcmf\Service::M()->db->table('1_news') ->whereNotIn('id', $blockedIds) // 使用$blockedIds数组排除指定的id ->get() ->getResultArray();
如何使用$blockedIds数组排除指定的id?
是whereNotIn吗
->whereNotIn('id', $blockedIds)