fix: extra.history update
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Baoshuo Ren 2023-02-09 06:37:13 +08:00
parent 387e7b45af
commit b7347e76a2
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A

View File

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