fix takeupload extra no torrent_id

This commit is contained in:
xiaomlove
2025-01-21 22:27:51 +08:00
parent 2ef6fc3c88
commit 9863398809

View File

@@ -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