解决utc时间问题
This commit is contained in:
parent
2f8318b24e
commit
858b76d4d2
@ -163,7 +163,9 @@ namespace Assets.Scripts.Apis
|
||||
{
|
||||
var result = await response.Content.ReadAsStringAsync();
|
||||
Console.WriteLine(result);
|
||||
return JsonConvert.DeserializeObject<T>(result);
|
||||
return JsonConvert.DeserializeObject<T>(result, new JsonSerializerSettings {
|
||||
DateTimeZoneHandling = DateTimeZoneHandling.Local
|
||||
});
|
||||
}
|
||||
|
||||
//protected T Post<T>(string url, object data)
|
||||
|
||||
@ -58,7 +58,7 @@ public class DeviceItem : Selectable, IEventSystemHandler, IPointerClickHandler
|
||||
{
|
||||
return;
|
||||
}
|
||||
//Debug.Log(DeviceInfo.SignalStrength);
|
||||
Debug.Log(DeviceInfo.SignalStrength);
|
||||
|
||||
//signal.enabled = true;
|
||||
|
||||
@ -71,7 +71,7 @@ public class DeviceItem : Selectable, IEventSystemHandler, IPointerClickHandler
|
||||
{
|
||||
signal.sprite = Resources.Load<Sprite>("Images/Signal_2");
|
||||
}
|
||||
else if (signalValue > 60 && signalValue <= 97)
|
||||
else if (signalValue > 60)//&& signalValue <= 97
|
||||
{
|
||||
signal.sprite = Resources.Load<Sprite>("Images/Signal_3");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user