コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }