private void Sign(string qq) { if (string.IsNullOrEmpty(qq)) { Toast.Show("QQ号不能为空!"); errorText.text = "QQ号不能为空!"; return; } Busy.Show(); QQKit.GetInfo(qq, (res) => { Busy.Hide(); if (!res.success) { Toast.Show(res.message); errorText.text = res.message; } else { PlayerPrefs.SetString("QQ", qq); Toast.Show($"恭喜 {res.message} 登录成功!"); Close(); UIManager.Open <NavView>(); UIManager.Open <MainView>(); } }); }
private void ShowBusy(int timeout = 10) { if (isActiveAndEnabled) { Busy.Show(timeout); } }
private void Refresh() { Busy.Show(); action.UserList(DeviceID.UUID, OnUserList); }