change announce hr handle

This commit is contained in:
xiaomlove
2023-09-20 01:14:08 +08:00
parent 6128c17aa4
commit 36aa10f64f
5 changed files with 44 additions and 133 deletions
+4
View File
@@ -1205,3 +1205,7 @@ function is_danger_url($url): bool
return false;
}
function get_snatch_info($torrentId, $userId)
{
return mysql_fetch_assoc(sql_query(sprintf('select * from snatched where torrentid = %s and userid = %s order by id desc limit 1', $torrentId, $userId)));
}