*
Showing
1 changed file
with
1 additions
and
1 deletions
... | @@ -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); | ... | ... |
-
Please register or sign in to post a comment