解决金额区域差异问题
This commit is contained in:
1 parent
17eaccb72e
commit
b6d70e6856
8 files changed
+28
-25
No files matched your search
@@ -16,6 +16,7 @@ using UnityEngine.EventSystems;
|
||||
using UnityEngine.SceneManagement;
|
||||
using Mapbox.Examples;
|
||||
using DG.Tweening;
|
||||
using System.Globalization;
|
||||
|
||||
public class BigMapController : PFUIPanel
|
||||
{
|
||||
@@ -241,7 +242,7 @@ public class BigMapController : PFUIPanel
|
||||
//Screen.width
|
||||
//map.WorldToGeoPosition(start)
|
||||
|
||||
var bounds = $"{ start.y },{ start.x };{ end.y },{ end.x }";
|
||||
var bounds = $"{ start.y.ToString(CultureInfo.InvariantCulture) },{ start.x.ToString(CultureInfo.InvariantCulture) };{ end.y.ToString(CultureInfo.InvariantCulture) },{ end.x.ToString(CultureInfo.InvariantCulture) }";
|
||||
var res = await mapApi.GetNearRouteAsync((float)mapManager.CenterLatitudeLongitude.x, (float)mapManager.CenterLatitudeLongitude.y,
|
||||
mapManager.Zoom, bounds);
|
||||
if(res.result == false)
|
||||
|
||||
@@ -243,8 +243,8 @@ public class EarthController : PFUIPanel
|
||||
{
|
||||
//Debug.Log("click");
|
||||
|
||||
Vector2 latLon = Conversion.GetLatLonFromSpherePoint(sphereLocation);
|
||||
Debug.Log("Clicked on Latitude: " + latLon.x + ", Longitude: " + latLon.y);
|
||||
//Vector2 latLon = Conversion.GetLatLonFromSpherePoint(sphereLocation);
|
||||
//Debug.Log("Clicked on Latitude: " + latLon.x + ", Longitude: " + latLon.y);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@ using Newtonsoft.Json.Linq;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Threading.Tasks;
|
||||
using UnityEngine;
|
||||
@@ -308,12 +309,12 @@ public class EditUserController : PFUIPanel
|
||||
Utils.showToast(gameObject, "Please fill in the information");//请填写相关信息
|
||||
return;
|
||||
}
|
||||
user.FTP = int.Parse(mFTP.Text);
|
||||
user.Height = int.Parse(mHeight.Text);
|
||||
user.Weight = double.Parse(mWeight.Text);
|
||||
user.MaxHeartRate = int.Parse(mMHR.Text);
|
||||
user.BicycleWeight = double.Parse(mBW.Text);
|
||||
user.WheelDiameter = int.Parse(mWD.Text);
|
||||
user.FTP = Convert.ToInt32(mFTP.Text, CultureInfo.InvariantCulture); //int.Parse(mFTP.Text);
|
||||
user.Height = Convert.ToInt32(mHeight.Text, CultureInfo.InvariantCulture); //int.Parse(mHeight.Text);
|
||||
user.Weight = Convert.ToDouble(mWeight.Text, CultureInfo.InvariantCulture); //double.Parse(mWeight.Text);
|
||||
user.MaxHeartRate = Convert.ToInt32(mMHR.Text, CultureInfo.InvariantCulture); //int.Parse(mMHR.Text);
|
||||
user.BicycleWeight = Convert.ToDouble(mBW.Text, CultureInfo.InvariantCulture); //double.Parse(mBW.Text);
|
||||
user.WheelDiameter = Convert.ToInt32(mWD.Text, CultureInfo.InvariantCulture); //int.Parse(mWD.Text);
|
||||
user.Unit = mUnitDropdown.SelectedIndex;
|
||||
user.Contact = mName.Text;
|
||||
user.ContactPhone = mPhone.Text;
|
||||
|
||||
Reference in new issue
Block a user