mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
fix token create
This commit is contained in:
@@ -15,6 +15,7 @@ use App\Models\User;
|
||||
use App\Repositories\ClaimRepository;
|
||||
use App\Repositories\ExamRepository;
|
||||
use App\Repositories\SeedBoxRepository;
|
||||
use App\Repositories\TokenRepository;
|
||||
use App\Repositories\UploadRepository;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@@ -78,15 +79,8 @@ class Test extends Command
|
||||
// $res = unserialize("O:36:\"App\\Jobs\\UpdateUserDownloadPrivilege\":3:{s:6:\"userId\";i:1;s:6:\"status\";s:3:\"yes\";s:9:\"reasonKey\";s:8:\"test_key\";}");
|
||||
// $res = unserialize("O:36:\"App\\Jobs\\UpdateUserDownloadPrivilege\":3:{s:6:\"userId\";i:1;s:6:\"status\";s:3:\"yes\";s:9:\"reasonKey\";s:8:\"test_key\";}");
|
||||
// dd($res);
|
||||
NexusDB::transaction(function () {
|
||||
User::query()->where("id", 1)->update(["last_access" => now()]);
|
||||
Message::add([
|
||||
'receiver' => 1,
|
||||
'subject' => 'test',
|
||||
'msg' => microtime(true),
|
||||
'added' => now()
|
||||
]);
|
||||
});
|
||||
$r = TokenRepository::listUserTokenPermissionAllowed();
|
||||
dd($r);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user