| | |
| | | { |
| | | void LoadOption() |
| | | { |
| | | if ( UserInfo.Current == null) |
| | | //2020-12-12 未登录或者APP未启动都返回,解决闪退问题 |
| | | if ( UserInfo.Current == null || !UserInfo.Current.IsLogin || MainPage.BasePageView == null) |
| | | { |
| | | return; |
| | | } |
| | |
| | | else if (UserInfo.Current.appUnlockType.Contains("4")) |
| | | { |
| | | //Face ID验证 |
| | | // |
| | | //2020-12-11 待增加面容失败验证页面,不然会导致锁屏加密无效 |
| | | } |
| | | else if (UserInfo.Current.appUnlockType.Contains("1")) |
| | | { |
| | |
| | | |
| | | } |
| | | |
| | | public void LoadPage() |
| | | /// <summary> |
| | | /// |
| | | /// </summary> |
| | | /// <param name="isFirstOpen">如果是第一次启动直接弹窗验证密码</param> |
| | | public void LoadPage(bool isFirstOpen = false) |
| | | { |
| | | if (UserInfo.Current.unlockTime.AddSeconds(60) > DateTime.Now || UserInfo.Current.appUnlockPasswrod == "" || UserInfo.Current.appUnlockPage.Count == 0) |
| | | try |
| | | { |
| | | return; |
| | | if (!isFirstOpen) |
| | | { |
| | | if (UserInfo.Current.unlockTime.AddMinutes(5) > DateTime.Now || UserInfo.Current.appUnlockPasswrod == "" || UserInfo.Current.appUnlockPage.Count == 0) |
| | | { |
| | | return; |
| | | } |
| | | } |
| | | LoadOption(); |
| | | } |
| | | LoadOption(); |
| | | catch |
| | | { |
| | | Utlis.WriteLine("AppUnlockPage error"); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |