Beispiel #1
0
 public YsSession(string sessionKey)
     : base(sessionKey)
 {
     BsIAccountInfo acc = this.Account;
     if (acc != null && acc.AccountType.Value == AccountType.User)
     {
         MUserBL userBL = new MUserBL();
         string msg;
         user = userBL.GetYsMemeber(acc.AccountId.Value, out msg); //获取登录用户(只获取前台用户,后台用户本类自动获取)
         if (user == null)
             return;
         this.account = acc;
     }
 }
Beispiel #2
0
        public YsSession(string sessionKey) : base(sessionKey)
        {
            BsIAccountInfo acc = this.Account;

            if (acc != null && acc.AccountType.Value == AccountType.User)
            {
                MUserBL userBL = new MUserBL();
                string  msg;
                user = userBL.GetYsMemeber(acc.AccountId.Value, out msg); //获取登录用户(只获取前台用户,后台用户本类自动获取)
                if (user == null)
                {
                    return;
                }
                this.account = acc;
            }
        }