diff --git a/app/Models/UserBot.php b/app/Models/UserBot.php index 359ce7a30..e5cbdca06 100644 --- a/app/Models/UserBot.php +++ b/app/Models/UserBot.php @@ -284,7 +284,7 @@ class UserBot extends AbstractModel ]; } } elseif (preg_match('/^(manual|locat|face|checkin)-(\d+)$/i', $mac, $match)) { - $type = str_replace('checkin', 'face', $match[1]); + $type = strtolower(str_replace('checkin', 'face', $match[1])); $mac = intval($match[2]); $remark = match ($type) { 'manual' => $setting['manual_remark'] ?: 'Manual', @@ -303,6 +303,8 @@ class UserBot extends AbstractModel 'remark' => $remark, ]; } + } else { + continue; } if ($array) { $record = UserCheckinRecord::where($array)->first(); diff --git a/resources/mobile b/resources/mobile index a5e51c29d..fbcd75e75 160000 --- a/resources/mobile +++ b/resources/mobile @@ -1 +1 @@ -Subproject commit a5e51c29d7d28cfbfadbf12adcc67632a0305186 +Subproject commit fbcd75e75fac890b337981214e9163484a634c47