Commit 0d8f927a 0d8f927a4e49956d736cdbadcdaa6fea85631b5e by lemon

*

1 parent 3aa1fafa
...@@ -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 });
......