Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Cong.Zhao
/
musician-api.hikoon.com
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
1a525e07
...
1a525e0715f0a6b803f4c72560f23d9cf8218a1a
authored
2021-09-18 14:47:14 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
cc78c034
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/Console/Commands/DealSongIp.php
app/Console/Commands/DealSongIp.php
View file @
1a525e0
...
...
@@ -83,7 +83,7 @@ class DealSongIp extends Command
$redis
->
del
(
$key2
);
}
SongsIp
::
query
()
->
chunk
(
5000
,
function
(
$res
)
use
(
$redis
)
{
SongsIp
::
query
()
->
where
([
'auth_channel'
=>
1
])
->
chunk
(
5000
,
function
(
$res
)
use
(
$redis
)
{
foreach
(
$res
as
$item
)
{
$key
=
"company:#company_id#:channel:#channel#:songip"
;
$key
=
str_replace
([
'#company_id#'
,
'#channel#'
],
[
$item
->
company_id
,
1
],
$key
);
...
...
Please
register
or
sign in
to post a comment