encrypt download url

This commit is contained in:
xiaomlove
2021-06-01 23:33:28 +08:00
parent 87817de415
commit 0852509084
5 changed files with 55 additions and 4 deletions
+5 -2
View File
@@ -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);
}
}