perf: 添加定位签到

This commit is contained in:
kuaifan
2024-11-08 21:46:07 +08:00
parent 2fc329a403
commit 3b9c9872ca
19 changed files with 1997 additions and 763 deletions

View File

@@ -2039,6 +2039,16 @@ class Base
return $platform;
}
/**
* 是否是App移动端
* @return bool
*/
public static function isEEUIApp()
{
$userAgent = strtolower(Request::server('HTTP_USER_AGENT'));
return str_contains($userAgent, 'kuaifan_eeui');
}
/**
* 返回根据距离sql排序语句
* @param $lat