Commit 0d8f927a 0d8f927a4e49956d736cdbadcdaa6fea85631b5e by lemon

*

1 parent 3aa1fafa
......@@ -85,8 +85,8 @@ class DealSongIp extends Command
SongsIp::query()->where(['auth_channel'=>1])->chunk(5000, function ($res) use ($redis) {
foreach ($res as $item) {
$key = "company:#company_id#:channel:#channel#:subject_no:#subject_no#:songip";
$key = str_replace(['#company_id#', '#channel#', '#subject_no#'], [$item->company_id, 1, $item->subject_no], $key);
$key = "company:#company_id#:channel:#channel#:release_no:#release_no#:songip";
$key = str_replace(['#company_id#', '#channel#', '#subject_no#'], [$item->company_id, 1, $item->release_no], $key);
$redis->sadd($key, $item->custom_id);
}
});
......