*
Showing
4 changed files
with
22 additions
and
2 deletions
... | @@ -85,7 +85,7 @@ class DealSongIp extends Command | ... | @@ -85,7 +85,7 @@ class DealSongIp extends Command |
85 | SongsIp::query()->where(['auth_channel'=>1])->chunk(5000, function ($res) use ($redis) { | 85 | SongsIp::query()->where(['auth_channel'=>1])->chunk(5000, function ($res) use ($redis) { |
86 | foreach ($res as $item) { | 86 | foreach ($res as $item) { |
87 | $key = "company:#company_id#:channel:#channel#:release_no:#release_no#:songip"; | 87 | $key = "company:#company_id#:channel:#channel#:release_no:#release_no#:songip"; |
88 | $key = str_replace(['#company_id#', '#channel#', '#subject_no#'], [$item->company_id, 1, $item->release_no], $key); | 88 | $key = str_replace(['#company_id#', '#channel#', '#release_no#'], [$item->company_id, 1, $item->release_no], $key); |
89 | $redis->sadd($key, $item->custom_id); | 89 | $redis->sadd($key, $item->custom_id); |
90 | } | 90 | } |
91 | }); | 91 | }); | ... | ... |
... | @@ -2,6 +2,7 @@ | ... | @@ -2,6 +2,7 @@ |
2 | 2 | ||
3 | namespace App\Http\Middleware; | 3 | namespace App\Http\Middleware; |
4 | 4 | ||
5 | use App\Helper\AesEncrypt; | ||
5 | use App\Helper\ErrorCode; | 6 | use App\Helper\ErrorCode; |
6 | use App\Helper\Identifier; | 7 | use App\Helper\Identifier; |
7 | use App\Helper\Response; | 8 | use App\Helper\Response; |
... | @@ -44,7 +45,6 @@ class AuthIdentifier | ... | @@ -44,7 +45,6 @@ class AuthIdentifier |
44 | 45 | ||
45 | Log::info(__METHOD__. '解析后', ['identifier'=>$identifier]); | 46 | Log::info(__METHOD__. '解析后', ['identifier'=>$identifier]); |
46 | 47 | ||
47 | |||
48 | if (empty($identifier)) return Response::error(ErrorCode::IDENTIFIER_FAIL); | 48 | if (empty($identifier)) return Response::error(ErrorCode::IDENTIFIER_FAIL); |
49 | 49 | ||
50 | $identifier = json_decode($identifier); | 50 | $identifier = json_decode($identifier); | ... | ... |
app/Models/Musician/AppUserVerified.php
0 → 100644
1 | <?php | ||
2 | |||
3 | namespace App\Models\Musician; | ||
4 | |||
5 | use App\Models\BaseModel; | ||
6 | use Illuminate\Database\Eloquent\Factories\HasFactory; | ||
7 | |||
8 | /** | ||
9 | * Class AppUser | ||
10 | * @package App\Models\Musician | ||
11 | */ | ||
12 | class AppUserVerified extends BaseModel | ||
13 | { | ||
14 | use HasFactory; | ||
15 | |||
16 | protected $connection = 'musician'; | ||
17 | |||
18 | protected $table = 'app_user_verified'; | ||
19 | } |
... | @@ -10,6 +10,7 @@ use App\Models\Legal\SongsIp; | ... | @@ -10,6 +10,7 @@ use App\Models\Legal\SongsIp; |
10 | use App\Models\Legal\SongsIpExts; | 10 | use App\Models\Legal\SongsIpExts; |
11 | use App\Models\Legal\SongStakeholder; | 11 | use App\Models\Legal\SongStakeholder; |
12 | use App\Models\Legal\StakeholderSongCollate; | 12 | use App\Models\Legal\StakeholderSongCollate; |
13 | use App\Models\Musician\AppUserVerified; | ||
13 | use Carbon\Carbon; | 14 | use Carbon\Carbon; |
14 | 15 | ||
15 | /** | 16 | /** | ... | ... |
-
Please register or sign in to post a comment