Commit f4753aeb f4753aeb8756843ce72632654bca817a83fda537 by lemon

*

1 parent f168bd1b
......@@ -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);
}
});
......
......@@ -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);
......
<?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';
}
......@@ -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;
/**
......