Commit 1a525e07 1a525e0715f0a6b803f4c72560f23d9cf8218a1a by lemon

*

1 parent cc78c034
......@@ -83,7 +83,7 @@ class DealSongIp extends Command
$redis->del($key2);
}
SongsIp::query()->chunk(5000, function ($res) use ($redis) {
SongsIp::query()->where(['auth_channel'=>1])->chunk(5000, function ($res) use ($redis) {
foreach ($res as $item) {
$key = "company:#company_id#:channel:#channel#:songip";
$key = str_replace(['#company_id#', '#channel#'], [$item->company_id, 1], $key);
......