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
f4753aeb
...
f4753aeb8756843ce72632654bca817a83fda537
authored
2021-10-09 14:01:04 +0800
by
lemon
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
*
1 parent
f168bd1b
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
2 deletions
app/Console/Commands/DealSongIp.php
app/Http/Middleware/AuthIdentifier.php
app/Models/Musician/AppUserVerified.php
app/Services/MusicianSongService.php
app/Console/Commands/DealSongIp.php
View file @
f4753ae
...
...
@@ -85,7 +85,7 @@ 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#:release_no:#release_no#:songip"
;
$key
=
str_replace
([
'#company_id#'
,
'#channel#'
,
'#
subject
_no#'
],
[
$item
->
company_id
,
1
,
$item
->
release_no
],
$key
);
$key
=
str_replace
([
'#company_id#'
,
'#channel#'
,
'#
release
_no#'
],
[
$item
->
company_id
,
1
,
$item
->
release_no
],
$key
);
$redis
->
sadd
(
$key
,
$item
->
custom_id
);
}
});
...
...
app/Http/Middleware/AuthIdentifier.php
View file @
f4753ae
...
...
@@ -2,6 +2,7 @@
namespace
App\Http\Middleware
;
use
App\Helper\AesEncrypt
;
use
App\Helper\ErrorCode
;
use
App\Helper\Identifier
;
use
App\Helper\Response
;
...
...
@@ -44,7 +45,6 @@ class AuthIdentifier
Log
::
info
(
__METHOD__
.
'解析后'
,
[
'identifier'
=>
$identifier
]);
if
(
empty
(
$identifier
))
return
Response
::
error
(
ErrorCode
::
IDENTIFIER_FAIL
);
$identifier
=
json_decode
(
$identifier
);
...
...
app/Models/Musician/AppUserVerified.php
0 → 100644
View file @
f4753ae
<?php
namespace
App\Models\Musician
;
use
App\Models\BaseModel
;
use
Illuminate\Database\Eloquent\Factories\HasFactory
;
/**
* Class AppUser
* @package App\Models\Musician
*/
class
AppUserVerified
extends
BaseModel
{
use
HasFactory
;
protected
$connection
=
'musician'
;
protected
$table
=
'app_user_verified'
;
}
app/Services/MusicianSongService.php
View file @
f4753ae
...
...
@@ -10,6 +10,7 @@ use App\Models\Legal\SongsIp;
use
App\Models\Legal\SongsIpExts
;
use
App\Models\Legal\SongStakeholder
;
use
App\Models\Legal\StakeholderSongCollate
;
use
App\Models\Musician\AppUserVerified
;
use
Carbon\Carbon
;
/**
...
...
Please
register
or
sign in
to post a comment