public override bool GetUserSex(string name) { bool flag; try { flag = new PassPortSoapClient().Get_UserSex(string.Empty, name).Value; } catch (Exception ex) { BaseInterface.log.Error((object)"获取性别失败", ex); flag = true; } return(flag); }
public override bool GetUserSex(string name) { bool result; try { PassPortSoapClient passPortSoapClient = new PassPortSoapClient(); result = passPortSoapClient.Get_UserSex(string.Empty, name).Value; } catch (Exception exception) { BaseInterface.log.Error("获取性别失败", exception); result = true; } return(result); }