perf: 优化初始化数据
This commit is contained in:
@@ -284,7 +284,7 @@ class UserBot extends AbstractModel
|
||||
];
|
||||
}
|
||||
} elseif (preg_match('/^(manual|locat|face|checkin)-(\d+)$/i', $mac, $match)) {
|
||||
$type = strtolower(str_replace('checkin', 'face', $match[1]));
|
||||
$type = str_replace('checkin', 'face', strtolower($match[1]));
|
||||
$mac = intval($match[2]);
|
||||
$remark = match ($type) {
|
||||
'manual' => $setting['manual_remark'] ?: 'Manual',
|
||||
|
||||
Reference in New Issue
Block a user