mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
encrypt download url
This commit is contained in:
@@ -7,6 +7,7 @@ use App\Models\ExamProgress;
|
||||
use App\Models\ExamUser;
|
||||
use App\Models\User;
|
||||
use App\Repositories\ExamRepository;
|
||||
use App\Repositories\TorrentRepository;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Console\Command;
|
||||
use Illuminate\Support\Facades\DB;
|
||||
@@ -61,8 +62,10 @@ class Test extends Command
|
||||
// $r = $disk->put('/', base_path('composer.json'));
|
||||
// $r = DB::table('users')->where('id', 1)->update(['modcomment' => DB::raw("concat_ws(',', 'ddddd', modcomment)")]);
|
||||
|
||||
$r = format_description('[em4] [em27]');
|
||||
dd($r);
|
||||
$rep = new TorrentRepository();
|
||||
$r1 = $rep->encryptDownHash(1, 1);
|
||||
$r2 = $rep->decryptDownHash($r1);
|
||||
dd($r1, $r2);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user