Commit deb384a27f2d920671ed23d00750a80f467ec901
1 parent
cab196dc
Exists in
newLive
no message
Showing
1 changed file
with
9 additions
and
1 deletions
Show diff stats
YouerLiveVideo/YouerLiveVideo/util/account.swift
| @@ -77,12 +77,20 @@ class AccountManager{ | @@ -77,12 +77,20 @@ class AccountManager{ | ||
| 77 | return "" | 77 | return "" |
| 78 | } | 78 | } |
| 79 | 79 | ||
| 80 | + func schoolid()->String{ | ||
| 81 | + if let info=rawUserInfo{ | ||
| 82 | + return info.contentData()["schoolid"].stringValue | ||
| 83 | + } | ||
| 84 | + return "" | ||
| 85 | + } | ||
| 86 | + | ||
| 80 | func schoolName()->String{ | 87 | func schoolName()->String{ |
| 81 | if let info=rawUserInfo{ | 88 | if let info=rawUserInfo{ |
| 82 | - return info.contentData()["f_SchoolName"].stringValue | 89 | + return info.contentData()["schoolname"].stringValue |
| 83 | } | 90 | } |
| 84 | return "" | 91 | return "" |
| 85 | } | 92 | } |
| 93 | + | ||
| 86 | 94 | ||
| 87 | func isParent()->Bool{ | 95 | func isParent()->Bool{ |
| 88 | if let info=rawUserInfo{ | 96 | if let info=rawUserInfo{ |