Commit 1a525e07 1a525e0715f0a6b803f4c72560f23d9cf8218a1a by lemon

*

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