Commit 2b28ae19d644b25e70b071d831ab75a97a582e8e
Exists in
newLive
Merge branch 'newLive' of http://git.shunzhi.net/iosgroup/newlive into newLive
Showing
3 changed files
with
8 additions
and
6 deletions
Show diff stats
YouerLiveVideo/YouerLiveVideo/AppDelegate.swift
| ... | ... | @@ -21,7 +21,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate,NIMLoginManagerDelegate { |
| 21 | 21 | httpServer.accountManager=accountManager |
| 22 | 22 | accountManager.setTokenInfo(tokenInfo: accountManager.loadToken()) |
| 23 | 23 | // setShareSDKSetting() |
| 24 | - setNIMSDKRegister() | |
| 24 | +// setNIMSDKRegister() | |
| 25 | 25 | return true |
| 26 | 26 | } |
| 27 | 27 | ... | ... |
YouerLiveVideo/YouerLiveVideo/controllers/User/UserCenter/LoginViewController.swift
| ... | ... | @@ -82,7 +82,9 @@ class LoginViewController: UIViewController,UITextFieldDelegate { |
| 82 | 82 | AppDelegate.instance().accountManager.saveToken(tokenInfo: ret) |
| 83 | 83 | AppDelegate.instance().accountManager.refreshUserInfo(completionHandler: { (finish) in |
| 84 | 84 | if finish{ |
| 85 | - self.loadUserInfo() | |
| 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 | } | ... | ... |