From 54b3f9e1ec0fb6f67d5bd50c813c8d01563132f0 Mon Sep 17 00:00:00 2001 From: xiaomlove Date: Sun, 15 May 2022 14:12:17 +0800 Subject: [PATCH] fix announce.php do not update snatch when no event --- include/constants.php | 4 ++-- public/announce.php | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/constants.php b/include/constants.php index 2dee76d9..8f655126 100644 --- a/include/constants.php +++ b/include/constants.php @@ -1,6 +1,6 @@ get_value('user_passkey_'.$passkey.'_content')){ $res = sql_query("SELECT id, downloadpos, enabled, uploaded, downloaded, class, parked, clientselect, showclienterror, passkey, donor, donoruntil FROM users WHERE passkey=". sqlesc($passkey)." LIMIT 1"); $az = mysql_fetch_array($res); - do_log("[check passkey], currentUser: " . nexus_json_encode($az), 'error'); + do_log("[check passkey], currentUser: " . nexus_json_encode($az)); $Cache->cache_value('user_passkey_'.$passkey.'_content', $az, 950); } if (!$az) err("Invalid passkey! Re-download the .torrent from $BASEURL"); @@ -459,7 +459,7 @@ elseif(isset($self)) if (mysql_affected_rows()) { - if ($seeder <> $self["seeder"]) +// if ($seeder <> $self["seeder"]) //count directly since 1.7.4 // $updateset[] = ($seeder == "yes" ? "seeders = seeders + 1, leechers = leechers - 1" : "seeders = seeders - 1, leechers = leechers + 1"); $snatchInfo = \App\Models\Snatch::query()