*
Showing
1 changed file
with
2 additions
and
2 deletions
... | @@ -85,8 +85,8 @@ class DealSongIp extends Command | ... | @@ -85,8 +85,8 @@ class DealSongIp extends Command |
85 | 85 | ||
86 | SongsIp::query()->where(['auth_channel'=>1])->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#:subject_no:#subject_no#:songip"; | 88 | $key = "company:#company_id#:channel:#channel#:release_no:#release_no#:songip"; |
89 | $key = str_replace(['#company_id#', '#channel#', '#subject_no#'], [$item->company_id, 1, $item->subject_no], $key); | 89 | $key = str_replace(['#company_id#', '#channel#', '#subject_no#'], [$item->company_id, 1, $item->release_no], $key); |
90 | $redis->sadd($key, $item->custom_id); | 90 | $redis->sadd($key, $item->custom_id); |
91 | } | 91 | } |
92 | }); | 92 | }); | ... | ... |
-
Please register or sign in to post a comment