From 9863398809dfcfd0a85a1748852f441e2674e09b Mon Sep 17 00:00:00 2001 From: xiaomlove <1939737565@qq.com> Date: Tue, 21 Jan 2025 22:27:51 +0800 Subject: [PATCH] fix takeupload extra no torrent_id --- public/takeupload.php | 1 + 1 file changed, 1 insertion(+) diff --git a/public/takeupload.php b/public/takeupload.php index a12f80c0..81eb19d3 100644 --- a/public/takeupload.php +++ b/public/takeupload.php @@ -441,6 +441,7 @@ if (!empty($tagIdArr)) { foreach ($filelist as $file) { @sql_query("INSERT INTO files (torrent, filename, size) VALUES ($id, ".sqlesc($file[0]).",".$file[1].")"); } +$extra['torrent_id'] = $id; \App\Models\TorrentExtra::query()->create($extra); //===add karma