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