From deb384a27f2d920671ed23d00750a80f467ec901 Mon Sep 17 00:00:00 2001 From: 左丞 Date: Fri, 26 May 2017 09:03:28 +0800 Subject: [PATCH] no message --- YouerLiveVideo/YouerLiveVideo/util/account.swift | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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