From b7347e76a243668c652645f31f554b65ffd37127 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Thu, 9 Feb 2023 06:37:13 +0800 Subject: [PATCH] fix: extra.history update --- web/app/models/UOJUser.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/web/app/models/UOJUser.php b/web/app/models/UOJUser.php index 29ba52f..d4d104a 100644 --- a/web/app/models/UOJUser.php +++ b/web/app/models/UOJUser.php @@ -287,7 +287,11 @@ class UOJUser { } for ($i = 0; $i < count($new_h); $i++) { - if ($new_h[$i]['addr'] == $cur['addr'] && $new_h[$i]['ua'] == $cur['ua']) { + if ( + $new_h[$i]['addr'] == $cur['addr'] && + $new_h[$i]['forwarded_addr'] == $cur['forwarded_addr'] && + $new_h[$i]['ua'] == $cur['ua'] + ) { $new_h[$i]['last'] = $cur['last']; return $new_h; }