Commit 7bae119e5d2e9d4a92d2425d09f1600859aa68da

Authored by 葛建军
1 parent 0fb1c331
Exists in newLive

no message

YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/LoginViewController.swift
... ... @@ -83,6 +83,8 @@ class LoginViewController: UIViewController,UITextFieldDelegate {
83 83 AppDelegate.instance().accountManager.refreshUserInfo(completionHandler: { (finish) in
84 84 if finish{
85 85 // self.loadUserInfo()
  86 + SVProgressHUD.dismiss()
  87 + self.back()
86 88 }else{
87 89 AppDelegate.instance().window?.makeToast("身份获取失败")
88 90 SVProgressHUD.dismiss()
... ...
YouerLiveVideo/YouerLiveVideo/util/account.swift
... ... @@ -48,25 +48,25 @@ class AccountManager{
48 48 }
49 49 func id()->String{
50 50 if let info=rawUserInfo{
51   - return info.contentData()["f_Account"].stringValue
  51 + return info.contentData()["account"].stringValue
52 52 }
53 53 return ""
54 54 }
55 55 func name()->String{
56 56 if let info=rawUserInfo{
57   - return info.contentData()["f_RealName"].stringValue
  57 + return info.contentData()["nickname"].stringValue
58 58 }
59 59 return ""
60 60 }
61 61 func photo()->String{
62 62 if let info=rawUserInfo{
63   - return info.contentData()["f_HeadIcon"].stringValue
  63 + return info.contentData()["headimg"].stringValue
64 64 }
65 65 return "defphoto"
66 66 }
67 67 func phone()->String{
68 68 if let info=rawUserInfo{
69   - return info.contentData()["f_MobilePhone"].stringValue
  69 + return info.contentData()["mobile"].stringValue
70 70 }
71 71 return ""
72 72 }
... ...