diff --git a/YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/LoginViewController.swift b/YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/LoginViewController.swift index 5e87824..44a1ca5 100644 --- a/YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/LoginViewController.swift +++ b/YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/LoginViewController.swift @@ -83,6 +83,8 @@ class LoginViewController: UIViewController,UITextFieldDelegate { AppDelegate.instance().accountManager.refreshUserInfo(completionHandler: { (finish) in if finish{ // self.loadUserInfo() + SVProgressHUD.dismiss() + self.back() }else{ AppDelegate.instance().window?.makeToast("身份获取失败") SVProgressHUD.dismiss() diff --git a/YouerLiveVideo/YouerLiveVideo/util/account.swift b/YouerLiveVideo/YouerLiveVideo/util/account.swift index a393335..18c1952 100644 --- a/YouerLiveVideo/YouerLiveVideo/util/account.swift +++ b/YouerLiveVideo/YouerLiveVideo/util/account.swift @@ -48,25 +48,25 @@ class AccountManager{ } func id()->String{ if let info=rawUserInfo{ - return info.contentData()["f_Account"].stringValue + return info.contentData()["account"].stringValue } return "" } func name()->String{ if let info=rawUserInfo{ - return info.contentData()["f_RealName"].stringValue + return info.contentData()["nickname"].stringValue } return "" } func photo()->String{ if let info=rawUserInfo{ - return info.contentData()["f_HeadIcon"].stringValue + return info.contentData()["headimg"].stringValue } return "defphoto" } func phone()->String{ if let info=rawUserInfo{ - return info.contentData()["f_MobilePhone"].stringValue + return info.contentData()["mobile"].stringValue } return "" } -- libgit2 0.21.0