diff --git a/YouerLiveVideo/YouerLiveVideo/util/account.swift b/YouerLiveVideo/YouerLiveVideo/util/account.swift index d70f069..06303d0 100644 --- a/YouerLiveVideo/YouerLiveVideo/util/account.swift +++ b/YouerLiveVideo/YouerLiveVideo/util/account.swift @@ -77,12 +77,20 @@ class AccountManager{ return "" } + func schoolid()->String{ + if let info=rawUserInfo{ + return info.contentData()["schoolid"].stringValue + } + return "" + } + func schoolName()->String{ if let info=rawUserInfo{ - return info.contentData()["f_SchoolName"].stringValue + return info.contentData()["schoolname"].stringValue } return "" } + func isParent()->Bool{ if let info=rawUserInfo{ -- libgit2 0.21.0