From dc840e2d67654781ebc9c7640e6c44a63a6d04d0 Mon Sep 17 00:00:00 2001 From: JLChen <551775569@qq.com> Date: 星期五, 11 十二月 2020 09:44:37 +0800 Subject: [PATCH] 2020-12-11 1.注册、忘记密码、重置密码、点击返回到时候屏蔽检测错误提示。底部按钮使能效果优化修改。邮箱变密码输入问题修复。2.网络请求底层增加token过期检测刷新方法。3.更新控件库,iOS EditText取消默认密码输入方式。 --- HDL-ON_iOS/ViewController.cs | 13 +++++++++---- 1 files changed, 9 insertions(+), 4 deletions(-) diff --git a/HDL-ON_iOS/ViewController.cs b/HDL-ON_iOS/ViewController.cs index 89ca7a7..2f9ac1c 100644 --- a/HDL-ON_iOS/ViewController.cs +++ b/HDL-ON_iOS/ViewController.cs @@ -2,6 +2,7 @@ using CoreLocation; using Foundation; using HDL_ON; +using HDL_ON.DriverLayer; using Shared; using UIKit; @@ -14,7 +15,7 @@ base.ViewDidLoad(); - if (string.IsNullOrEmpty(UserConfig.Instance.SetLanguage)) + if (string.IsNullOrEmpty(OnAppConfig.Instance.SetLanguage)) { if (NSLocale.PreferredLanguages[0].Contains("zh-")) { @@ -31,9 +32,9 @@ } else { - Language.CurrentLanguage = UserConfig.Instance.SetLanguage; + Language.CurrentLanguage = OnAppConfig.Instance.SetLanguage; } - HDL_ON.UI.MainPage.Show(); + HDL_ON.MainPage.Show(); //渚︽祴缃戠粶鍙樺寲 Reachability.ReachabilityChanged += UpdateStatus; @@ -74,12 +75,16 @@ internetStatus = Reachability.InternetConnectionStatus(); if (internetStatus == NetworkStatus.NotReachable)//娌℃湁缃戠粶杩炴帴 0 { + Control.Ins.GatewayOnline = false; + Control.Ins.IsRemote = false; } else if (internetStatus == NetworkStatus.ReachableViaCarrierDataNetwork)//3,4G鐨勭綉缁滆繛鎺� 1 { + Control.Ins.SearchLoaclGateway(); } else if (internetStatus == NetworkStatus.ReachableViaWiFiNetwork) - { //wifi鐨勭綉缁滆繛鎺� 2 + { + Control.Ins.SearchLoaclGateway(); } } } -- Gitblit v1.8.0