Commit 1fa2e7ec 1fa2e7ecfbb55eed603b7c3138716568a09d3bfa by lemon

*

1 parent 8dbabbec
......@@ -8,6 +8,10 @@ use App\Models\Legal\SongsIp;
use Illuminate\Console\Command;
use Illuminate\Support\Facades\Redis;
/**
* Class DealSongIp
* @package App\Console\Commands
*/
class DealSongIp extends Command
{
/**
......@@ -58,7 +62,7 @@ class DealSongIp extends Command
SongsIp::query()->chunk(5000, function ($res) use ($redis) {
foreach ($res as $item) {
$key = "company:#company_id#:channel:#channel#:month:#month#:songip";
$key = "company:#company_id#:channel:#channel#:songip";
$key = str_replace(['#company_id#', '#channel#'], [$item->company_id, 1], $key);
$redis->sadd($key, $item->custom_id);
}
......