mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 12:07:23 +08:00
fix takeupload extra no torrent_id
This commit is contained in:
@@ -441,6 +441,7 @@ if (!empty($tagIdArr)) {
|
|||||||
foreach ($filelist as $file) {
|
foreach ($filelist as $file) {
|
||||||
@sql_query("INSERT INTO files (torrent, filename, size) VALUES ($id, ".sqlesc($file[0]).",".$file[1].")");
|
@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);
|
\App\Models\TorrentExtra::query()->create($extra);
|
||||||
|
|
||||||
//===add karma
|
//===add karma
|
||||||
|
|||||||
Reference in New Issue
Block a user