/// <summary> /// 用户认证 /// </summary> /// <param name="authPackage"></param> /// <returns></returns> public virtual string AuthenticateUser(IAuthPackage authPackage) { AuthMessage am = new AuthMessage(); am.LoginName = authPackage.LoginName; am.Password = authPackage.Password; am.PasswordEncrypted = authPackage.PasswordEncrypted; am.AuthType = authPackage.AuthType; am.IP = authPackage.IP; string sid = USService.AuthenticateUser(am.ToString()); return(sid); }