Example #1
0
 /// <summary>
 /// 获取登录时间
 /// </summary>
 /// <param name="mid"> 管理员编号 </param>
 /// <returns>返回时间</returns>
 public static DateTime GetLoginTime(string mid, int type)
 {
     if (type == 1)
     {
         return(ManageDAL.GetLoginTime(mid));
     }
     else if (type == 2)
     {
         return(StoreInfoDAL.GetLastLoginTime(mid));
     }
     else if (type == 3)
     {
         return(MemberInfoDAL.GetLastLoginTime(mid));
     }
     else
     {
         return(DateTime.Now);
     }
 }