mirror of
https://github.com/getrebuild/rebuild.git
synced 2024-09-20 15:35:55 +08:00
fix: login ua
This commit is contained in:
parent
49099cb32f
commit
e99608a856
|
@ -244,8 +244,11 @@ public class LoginController extends BaseController {
|
|||
try {
|
||||
UserAgent uas = UserAgent.parseUserAgentString(ua);
|
||||
|
||||
uaClear = uas.getBrowser().toString();
|
||||
if (uas.getBrowserVersion() != null) uaClear = "-" + uas.getBrowserVersion();
|
||||
uaClear = uas.getBrowser().name();
|
||||
if (uas.getBrowserVersion() != null) {
|
||||
String mv = uas.getBrowserVersion().getMajorVersion();
|
||||
if (!uaClear.endsWith(mv)) uaClear += "-" + mv;
|
||||
}
|
||||
|
||||
OperatingSystem os = uas.getOperatingSystem();
|
||||
if (os != null) {
|
||||
|
|
|
@ -871,7 +871,7 @@ var $autoLocation = function (call) {
|
|||
geo.getCurrentPosition(function (e) {
|
||||
if (this.getStatus() === window.BMAP_STATUS_SUCCESS) {
|
||||
var geoc = new window.BMapGL.Geocoder()
|
||||
geoc.getLocation(e.point, (r) => {
|
||||
geoc.getLocation(e.point, function (r) {
|
||||
var v = {
|
||||
lat: e.latitude,
|
||||
lng: e.longitude,
|
||||
|
|
Loading…
Reference in a new issue