mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
seed bonus add log etc
This commit is contained in:
@@ -14,6 +14,7 @@ use App\Models\TorrentExtra;
|
||||
use App\Models\User;
|
||||
use App\Repositories\ClaimRepository;
|
||||
use App\Repositories\ExamRepository;
|
||||
use App\Repositories\RequireSeedTorrentRepository;
|
||||
use App\Repositories\SeedBoxRepository;
|
||||
use App\Repositories\TokenRepository;
|
||||
use App\Repositories\UploadRepository;
|
||||
@@ -30,6 +31,8 @@ use NexusPlugin\StickyPromotion\Models\StickyPromotion;
|
||||
use NexusPlugin\StickyPromotion\Models\StickyPromotionParticipator;
|
||||
use NexusPlugin\Work\Models\RoleWork;
|
||||
use NexusPlugin\Work\WorkRepository;
|
||||
use Rhilip\Bencode\Bencode;
|
||||
use Rhilip\Bencode\TorrentFile;
|
||||
use Stichoza\GoogleTranslate\GoogleTranslate;
|
||||
|
||||
class Test extends Command
|
||||
@@ -65,22 +68,9 @@ class Test extends Command
|
||||
*/
|
||||
public function handle()
|
||||
{
|
||||
// $failedJob = DB::table('failed_jobs')->find(569);
|
||||
//
|
||||
// $payload = json_decode($failedJob->payload, true);
|
||||
// dd($payload);
|
||||
//
|
||||
// $base64 = $payload['data']['command'];
|
||||
// $job = unserialize($base64);
|
||||
//
|
||||
// dd($job);
|
||||
|
||||
// UpdateUserDownloadPrivilege::dispatch(1, "yes", "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\";}");
|
||||
// $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);
|
||||
$r = TokenRepository::listUserTokenPermissionAllowed();
|
||||
dd($r);
|
||||
$rep = new RequireSeedTorrentRepository();
|
||||
// $rep->doRemove(Torrent::query()->whereIn('id', [58])->get());
|
||||
$rep->autoAddToListCronjob();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user