蘇飛論壇

 找回密碼
 馬上注冊

QQ登錄

只需一步,快速開始

掃一掃,訪問微社區

分布式系統框架(V1.3) 輕松承載百億數據,千萬流量!討論專區 - 源碼下載 - 官方教程

HttpHelper萬能框架(V2.3) HttpHelper官方出品,無敵框架討論區 - 源碼下載 - 在線測試和代碼生成

HttpHelper爬蟲類(V1.9) 最牛的爬蟲類,沒有爬不到只有想不到 源碼 - 代碼生成器 - 討論區 - 教程- 例子

查看: 10418|回復: 3
打印 上一主題 下一主題

[功能幫助類] 最新的Functions 類

[復制鏈接]
跳轉到指定樓層
樓主
發表于 2012-9-25 13:21:39 | 只看該作者 回帖獎勵 |倒序瀏覽 |閱讀模式
導讀部分
-------------------------------------------------------------------------------------------------------------
C#基類|C#自定義類|C#幫助類--系列導航文章
http://www.59560474.com/thread-655-1-1.html

[C#] 純文本查看 復制代碼
代碼 
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
using System.IO;

namespace BaseFunction
{
    /// <summary>
    /// 常用函數。
    /// 作者:蘇飛
    /// 時間:20090322
    /// </summary>
    public sealed class Functions
    {
        static Int32 index;

        #region 前面補零
        /// <summary>
        /// 不住位數的數字,前面補零
        /// </summary>
        /// <param name="value">要補足的數字</param>
        /// <param name="size">不齊的位數</param>
        /// <returns></returns>
        public static string Zerofill(string value, int size)
        {
            string tmp = "";
            for (int i = 0; i < size - value.Length; i++)
            {
                tmp += "0";
            }

            return tmp + value;
        }
        #endregion

        #region 過濾掉 html代碼
        /// <summary>
        /// 過濾html標簽
        /// </summary>
        /// <param name="strHtml">html的內容</param>
        /// <returns></returns>
        public static string StripHTML(string strHtml)
        {
            string[] aryReg ={
                                  @"<script[^>]*?>.*?</script>",

                                  @"<(\/\s*)?!?((\w+:)?\w+)(\w+(\s*=?\s*(([""'])(\\[""'tbnr]|[^\7])*?\7|\w+)|.{0})|\s)*?(\/\s*)?>",
                                  @"([\r\n])[\s]+",
                                  @"&(quot|#34);",
                                  @"&(amp|#38);",
                                  @"&(lt|#60);",
                                  @"&(gt|#62);", 
                                  @"&(nbsp|#160);", 
                                  @"&(iexcl|#161);",
                                  @"&(cent|#162);",
                                  @"&(pound|#163);",
                                  @"&(copy|#169);",
                                  @"&#(\d+);",
                                  @"-->",
                                  @"<!--.*\n"
                              };

            string[] aryRep = {
                                   "",
                                   "",
                                   "",
                                   "\"",
                                   "&",
                                   "<",
                                   ">",
                                   " ",
                                   "\xa1",//chr(161),
                                   "\xa2",//chr(162),
                                   "\xa3",//chr(163),
                                   "\xa9",//chr(169),
                                   "",
                                   "\r\n",
                                   ""
                               };

            string newReg = aryReg[0];
            string strOutput = strHtml;
            for (int i = 0; i < aryReg.Length; i++)
            {
                System.Text.RegularExpressions.Regex regex = new System.Text.RegularExpressions.Regex(aryReg, System.Text.RegularExpressions.RegexOptions.IgnoreCase);
[i]                strOutput = regex.Replace(strOutput, aryRep);
            }
            //strOutput.Replace("<", "");
            //strOutput.Replace(">", "");
            strOutput = strOutput.Replace("\r\n", "");
            return strOutput;
        }
        #endregion

        #region 全角半角轉換
        /// <summary>
        /// 轉全角的函數(SBC case)
        /// </summary>
        /// <param name="input">任意字符串</param>
        /// <returns>全角字符串</returns>
        ///<remarks>
        ///全角空格為12288,半角空格為32
        ///其他字符半角(33-126)與全角(65281-65374)的對應關系是:均相差65248
        ///</remarks>
        public static string ToSBC(string input)
        {
            //半角轉全角:
            char[] c = input.ToCharArray();
            for (int i = 0; i < c.Length; i++)
            {
                if (c == 32)
                {
                    c = (char)12288;
                    continue;
                }
                if (c < 127)
                    c = (char)(c + 65248);
            }
            return new string(c);
        }


        /// <summary> 轉半角的函數(DBC case) </summary>
        /// <param name="input">任意字符串</param>
        /// <returns>半角字符串</returns>
        ///<remarks>
        ///全角空格為12288,半角空格為32
        ///其他字符半角(33-126)與全角(65281-65374)的對應關系是:均相差65248
        ///</remarks>
        public static string ToDBC(string input)
        {
            char[] c = input.ToCharArray();
            for (int i = 0; i < c.Length; i++)
            {
                if (c == 12288)
                {
                    c = (char)32;
                    continue;
                }
                if (c > 65280 && c < 65375)
                    c = (char)(c - 65248);
            }
            return new string(c);
        }
        #endregion


        #region 傳入URL返回網頁的html代碼

        /// <summary>
        /// 傳入URL返回網頁的html代碼
        /// </summary>
        /// <param name="Url">URL</param>
        /// <returns></returns>
        public static string GetUrltoHtml(string Url)
        {
            try
            {
                System.Net.WebRequest wReq = System.Net.WebRequest.Create(Url);
                // Get the response instance.
                System.Net.WebResponse wResp = wReq.GetResponse();
                // Read an HTTP-specific property
                //if (wResp.GetType() ==HttpWebResponse)
                //{
                //DateTime updated  =((System.Net.HttpWebResponse)wResp).LastModified;
                //}
                // Get the response stream.
                System.IO.Stream respStream = wResp.GetResponseStream();
                // Dim reader As StreamReader = New StreamReader(respStream)
                System.IO.StreamReader reader = new System.IO.StreamReader(respStream, System.Text.Encoding.GetEncoding("gb2312"));
                return reader.ReadToEnd();

            }
            catch (System.Exception ex)
            {
                //errorMsg = ex.Message;
            }
            return "";
        }

        #endregion

        #region MD5加密字符串。截取字符串

        /// <summary>
        /// 傳入明文,返回用MD%加密后的字符串
        /// </summary>
        /// <param name="str">要加密的字符串</param>
        /// <returns>用MD5加密后的字符串</returns>
        public static string ToMD5(string str)
        {
            return System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(str, "md5");
        }
        /// <summary>
        /// 截取字符串。
        /// </summary>
        /// <param name="str">要接取得字符串</param>
        /// <param name="number">保留的字節數。按半角計算</param>
        /// <returns>指定長度的字符串</returns>
        public static string StringCal(string str, int number)
        {
            Byte[] tempStr = System.Text.Encoding.Default.GetBytes(str);
            if (tempStr.Length > number)
            {
                return System.Text.Encoding.Default.GetString(tempStr, 0, number - 2) + "..";
            }
            else
                return str;
        }


        #endregion

        #region 刪除文件

        /// <summary>
        /// 刪除文件
        /// </summary>
        /// <param name="FilePath">文件的物理地址</param>
        /// <returns></returns>
        public static bool DeleteFile(string FilePath)
        {
            try
            {
                System.IO.File.Delete(FilePath);
                return true;
            }
            catch
            {
                //errorMsg = "刪除不成功!";
                return false;
            }
        }
        #endregion

        #region 驗證——數字部分
        /// <summary>
        /// 判斷是否是實數,是返回true 否返回false。可以傳入null。
        /// </summary>
        /// <param name="strVal">要驗證的字符串</param>
        /// <returns></returns>
        public static bool IsNumeric(string strVal)
        {
            //System.Text.RegularExpressions.Regex reg1 = new System.Text.RegularExpressions.Regex("-?([0]|([1-9]+\\d{0,}?))(.[\\d]+)?$");  
            //return reg1.IsMatch(strVal);  
            //string tmp="";
            //判斷是否為null 和空字符串
            if (strVal == null || strVal.Length == 0)
                return false;
            //判斷是否只有.、-、 -.
            if (strVal == "." || strVal == "-" || strVal == "-.")
                return false;

            //記錄是否有多個小數點
            bool isPoint = false;            //是否有小數點

            //去掉第一個負號,中間是不可以有負號的
            strVal = strVal.TrimStart('-');

            foreach (char c in strVal)
            {
                if (c == '.')
                    if (isPoint)
                        return false;
                    else
                        isPoint = true;

                if ((c < '0' || c > '9') && c != '.')
                    return false;
            }
            return true;
        }

        /// <summary>
        /// 判斷是否為整數。是返回true 否返回false。可以傳入null。
        /// </summary>
        /// <param name="strVal">要判斷的字符</param>
        /// <returns></returns>
        public static bool IsInt(string strVal)
        {
            if (strVal == null || strVal.Length == 0)
                return false;
            //判斷是否只有.、-、 -.
            if (strVal == "." || strVal == "-" || strVal == "-.")
                return false;

            //去掉第一個負號,中間是不可以有負號的
            if (strVal.Substring(0, 1) == "-")
                strVal = strVal.Remove(0, 1);

            foreach (char c in strVal)
            {
                if (c < '0' || c > '9')
                    return false;
            }
            return true;
        }

        /// <summary>
        /// 判斷是否為ID串。是返回true 否返回false。可以傳入null。
        /// </summary>
        /// <example >
        /// ,1,2,3,4,5,6,7,
        /// </example>
        /// <param name="strVal">要判斷的字符串</param>
        /// <returns></returns>
        public static bool IsIDString(string strVal)
        {
            bool flag = false;
            if (strVal == null)
                return false;
            if (strVal == "")
                return true;
            //判斷是否只有 ,
            if (strVal == ",")
                return false;

            //判斷第一位是否是,號
            if (strVal.Substring(0, 1) == ",")
                return false;

            //判斷最后一位是否是,號
            if (strVal.Substring(strVal.Length - 1, 1) == ",")
                return false;

            foreach (char c in strVal)
            {
                if (c == ',')
                    if (flag) return false; else flag = true;

                else if ((c >= '0' && c <= '9'))
                    flag = false;
                else
                    return false;
            }
            return true;
        }

        /// <summary>
        /// 轉換為整數。不是整數的話,返回“-1”
        /// </summary>
        /// <param name="str">要轉換的字符</param>
        /// <returns></returns>
        public static int StringToInt(string str)
        {
            //判斷是否是數字,是數字返回數字,不是數字返回-1
            if (IsInt(str))
                return Int32.Parse(str);
            else
                return -1;
        }

        /// <summary>
        /// 轉換為實數。不是實數的話,返回“-1”
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public static float StrTofloat(string str)
        {
            //判斷是否是數字,是數字返回數字,不是數字返回-1
            if (IsNumeric(str))
                return float.Parse(str);
            else
                return -1;
        }

        /// <summary>
        /// 驗證是否是GUID
        /// 6454bc76-5f98-de11-aa4c-00219bf56456
        /// </summary>
        /// <returns></returns>
        public static bool IsGUID(string strVal)
        {
            if (strVal == null)
                return false;

            if (strVal == "")
                return false;

            strVal = strVal.TrimStart('{');
            strVal = strVal.TrimEnd('}');

            //長度必須是36位
            if (strVal.Length != 36)
                return false;

            foreach (char c in strVal)
            {
                if (c == '-')
                    continue;
                else if (c >= 'a' && c <= 'f')
                    continue;
                else if (c >= 'A' && c <= 'F')
                    continue;
                else if ((c >= '0' && c <= '9'))
                    continue;
                else
                    return false;
            }
            return true;
        }
        #endregion


        #region 驗證——處理字符串部分

        /// <summary>
        /// 去掉兩邊的空格,把“'”替換為“'”SBC
        /// </summary>
        /// <param name="str">要處理的字符串</param>
        /// <returns></returns>
        public static string StringReplaceToSBC(string str)
        {
            //過濾不安全的字符
            string tstr;
            tstr = str.Trim();
            return tstr.Replace("'", "'");
        }

        /// <summary>
        /// 去掉兩邊的空格,把“'”替換為“''”DBC
        /// </summary>
        /// <param name="str">要驗證的字符串</param>
        /// <returns></returns>
        public static string StringReplaceToDBC(string str)
        {
            //過濾不安全的字符
            string tstr;
            tstr = str.Trim();
            return tstr.Replace("'", "''");
        }
        /// <summary>
        /// 去掉兩邊的空格,把“'”替換為“”
        /// </summary>
        /// <param name="str">要驗證的字符串</param>
        /// <returns></returns>
        public static string StringReplaceToEmpty(string str)
        {
            //過濾不安全的字符
            string tstr;
            tstr = str.Trim();
            return tstr.Replace("'", "");
        }

        #endregion


        #region 驗證——時間部分

        /// <summary>
        /// 轉換時間。不正確的話,返回當前時間
        /// </summary>
        /// <param name="isdt">要轉換的字符串</param>
        /// <returns></returns>
        public static DateTime StringToDateTime(string isdt)
        {
            //判斷時間是否正確
            DateTime mydt;
            try
            {
                mydt = Convert.ToDateTime(isdt);
            }
            catch
            {
                //時間格式不正確
                return mydt = DateTime.Now;
            }

            return mydt;
        }

        /// <summary>
        /// 判斷是否是正確的時間格式。正確返回“true”,不正確返回提示信息。
        /// 
        /// </summary>
        /// <param name="isdt">要判斷的字符串</param>
        /// <returns></returns>
        public static bool IsDateTime(string isdt)
        {
            //判斷時間是否正確
            DateTime mydt;
            try
            {
                mydt = Convert.ToDateTime(isdt);
                return true;
            }
            catch
            {
                //時間格式不正確
                //errorMsg = "您填的時間格式不正確,請按照2004-1-1的形式填寫。";
                return false;
            }


        }
        #endregion


        #region 生成查詢條件
        /// <summary>
        /// 組成查詢字符串
        /// </summary>
        /// <param name="columnName">字段名</param>
        /// <param name="keyword">查詢條件</param>
        /// <param name="hasContent">是否已經有查詢條件了,true:加and;false:不加and</param>
        /// <param name="colType">1:數字;2:字符串,精確查詢;3:字符串,模糊查詢,包括時間查詢</param>
        /// <returns></returns>
        public static string GetSearchString(string columnName, string keyword, ref bool hasContent, int colType)
        {
            if (keyword == "" || keyword == "0")
            {
                return "";
            }
            else
            {
                System.Text.StringBuilder tmp = new System.Text.StringBuilder();
                switch (colType)
                {
                    case 1:
                        //數字
                        tmp.Append(columnName);
                        tmp.Append(" = ");
                        tmp.Append(keyword);
                        break;
                    case 2:
                        //字符串,精確查詢
                        tmp.Append(columnName);
                        tmp.Append(" = '");
                        tmp.Append(keyword);
                        tmp.Append("' ");
                        break;
                    case 3:
                        //字符串,模糊查詢,包括時間查詢
                        tmp.Append(columnName);
                        tmp.Append(" like '% ");
                        tmp.Append(keyword);
                        tmp.Append("%' ");

                        break;
                }
                if (hasContent)
                    tmp.Insert(0, " and ");

                hasContent = true;
                return tmp.ToString();

            }

        }
        #endregion

        #region ========解密========


        /// <summary>
        /// 解密
        /// </summary>
        /// <param name="Text"></param>
        /// <returns></returns>
        public static string Decrypt(string Text)
        {
            return Decrypt(Text, "litianping");
        }

        /// <summary> 
        /// 解密數據 
        /// </summary> 
        /// <param name="Text"></param> 
        /// <param name="sKey"></param> 
        /// <returns></returns> 
        public static string Decrypt(string Text, string sKey)
        {
            DESCryptoServiceProvider des = new DESCryptoServiceProvider();
            int len;
            len = Text.Length / 2;
            byte[] inputByteArray = new byte[len];
            int x, i;
            for (x = 0; x < len; x++)
            {
                i = Convert.ToInt32(Text.Substring(x * 2, 2), 16);
                inputByteArray[x] = (byte)i;
            }
            des.Key = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey, "md5").Substring(0, 8));
            des.IV = ASCIIEncoding.ASCII.GetBytes(System.Web.Security.FormsAuthentication.HashPasswordForStoringInConfigFile(sKey, "md5").Substring(0, 8));
            System.IO.MemoryStream ms = new System.IO.MemoryStream();
            CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(), CryptoStreamMode.Write);
            cs.Write(inputByteArray, 0, inputByteArray.Length);
            cs.FlushFinalBlock();
            return Encoding.Default.GetString(ms.ToArray());
        }

        #endregion
    }

    #region 加密、解密字符串
    /// <summary>
    /// 加密字符串。可以解密
    /// </summary>
    public class Encryptor
    {
        #region 加密,固定密鑰
        /// <summary>
        /// 加密
        /// </summary>
        /// <param name="sourceData">原文</param>
        /// <returns></returns>
        public static string Encrypt(string sourceData)
        {
            //set key and initialization vector values
            //Byte[] key = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            //Byte[] iv = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            Byte[] key = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            Byte[] iv = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            try
            {
                //convert data to byte array
                Byte[] sourceDataBytes = System.Text.ASCIIEncoding.UTF8.GetBytes(sourceData);
                //get target memory stream
                MemoryStream tempStream = new MemoryStream();
                //get encryptor and encryption stream
                DESCryptoServiceProvider encryptor = new DESCryptoServiceProvider();
                CryptoStream encryptionStream = new CryptoStream(tempStream, encryptor.CreateEncryptor(key, iv), CryptoStreamMode.Write);

                //encrypt data
                encryptionStream.Write(sourceDataBytes, 0, sourceDataBytes.Length);
                encryptionStream.FlushFinalBlock();

                //put data into byte array
                Byte[] encryptedDataBytes = tempStream.GetBuffer();
                //convert encrypted data into string
                return System.Convert.ToBase64String(encryptedDataBytes, 0, (int)tempStream.Length);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
        #endregion

        #region 加密,可以設置密鑰
        /// <summary>
        /// 可以設置密鑰的加密方式
        /// </summary>
        /// <param name="sourceData">原文</param>
        /// <param name="key">密鑰,8位數字,字符串方式</param>
        /// <returns></returns>
        public static string Encrypt(string sourceData, string key)
        {
            //set key and initialization vector values
            //Byte[] key = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            //Byte[] iv = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};

            #region 檢查密鑰是否符合規定
            if (key.Length > 8)
            {
                key = key.Substring(0, 8);
            }
            #endregion

            char[] tmp = key.ToCharArray();
            Byte[] keys = new byte[8];
            //Byte[] keys = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            Byte[] iv = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };

            //設置密鑰
            for (int i = 0; i < 8; i++)
            {
                if (tmp.Length > i)
                {
                    keys = (byte)tmp;
                }
                else
                {
                    keys = (byte)i;
                }
            }

            try
            {
                //convert data to byte array
                Byte[] sourceDataBytes = System.Text.ASCIIEncoding.UTF8.GetBytes(sourceData);
                //get target memory stream
                MemoryStream tempStream = new MemoryStream();
                //get encryptor and encryption stream
                DESCryptoServiceProvider encryptor = new DESCryptoServiceProvider();
                CryptoStream encryptionStream = new CryptoStream(tempStream, encryptor.CreateEncryptor(keys, iv), CryptoStreamMode.Write);

                //encrypt data
                encryptionStream.Write(sourceDataBytes, 0, sourceDataBytes.Length);
                encryptionStream.FlushFinalBlock();

                //put data into byte array
                Byte[] encryptedDataBytes = tempStream.GetBuffer();
                //convert encrypted data into string
                return System.Convert.ToBase64String(encryptedDataBytes, 0, (int)tempStream.Length);
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
        #endregion

        #region 解密,固定密鑰
        /// <summary>
        /// 解密
        /// </summary>
        /// <param name="sourceData">密文</param>
        /// <returns></returns>
        public static string Decrypt(string sourceData)
        {
            //set key and initialization vector values
            //Byte[] key = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            //Byte[] iv = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            Byte[] keys = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            Byte[] iv = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            try
            {
                //convert data to byte array
                Byte[] encryptedDataBytes = System.Convert.FromBase64String(sourceData);
                //get source memory stream and fill it 
                MemoryStream tempStream = new MemoryStream(encryptedDataBytes, 0, encryptedDataBytes.Length);
                //get decryptor and decryption stream 
                DESCryptoServiceProvider decryptor = new DESCryptoServiceProvider();
                CryptoStream decryptionStream = new CryptoStream(tempStream, decryptor.CreateDecryptor(keys, iv), CryptoStreamMode.Read);

                //decrypt data 
                StreamReader allDataReader = new StreamReader(decryptionStream);

                return allDataReader.ReadToEnd();
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
        #endregion

        #region 解密,固定密鑰
        /// <summary>
        /// 解密
        /// </summary>
        /// <param name="sourceData">密文</param>
        /// <param name="key">密鑰,8位數字,字符串方式</param>
        /// <returns></returns>
        public static string Decrypt(string sourceData, string key)
        {
            //set key and initialization vector values
            //Byte[] key = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};
            //Byte[] iv = new byte[] {0x21, 2, 0x88, 4, 5, 0x56, 7, 0x99};

            #region 檢查密鑰是否符合規定
            if (key.Length > 8)
            {
                key = key.Substring(0, 8);
            }
            #endregion

            char[] tmp = key.ToCharArray();
            Byte[] keys = new byte[8];
            //Byte[] keys = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };
            Byte[] iv = new byte[] { 1, 2, 3, 4, 5, 6, 7, 8 };

            //設置密鑰
            for (int i = 0; i < 8; i++)
            {
                if (tmp.Length > i)
                {
                    keys = (byte)tmp;
                }
                else
                {
                    keys = (byte)i;
                }
            }


            try
            {
                //convert data to byte array
                Byte[] encryptedDataBytes = System.Convert.FromBase64String(sourceData);
                //get source memory stream and fill it 
                MemoryStream tempStream = new MemoryStream(encryptedDataBytes, 0, encryptedDataBytes.Length);
                //get decryptor and decryption stream 
                DESCryptoServiceProvider decryptor = new DESCryptoServiceProvider();
                CryptoStream decryptionStream = new CryptoStream(tempStream, decryptor.CreateDecryptor(keys, iv), CryptoStreamMode.Read);

                //decrypt data 
                StreamReader allDataReader = new StreamReader(decryptionStream);

                return allDataReader.ReadToEnd();
            }
            catch (Exception ex)
            {
                throw (ex);
            }
        }
        #endregion

        /// <summary>
        /// 對需要加密的字串進行MD5加密(針對密碼加密)
        /// </summary>
        /// <param name="ConvertString">需要加密的字串</param>
        /// <returns>加密后的字串</returns>
        /// <remarks>
        /// Modifier: Xiaoliang Ge
        /// Modified Date: 2009-12-26
        /// </remarks>
        public static string MD5EncryptStr(string ConvertString)
        {
            MD5CryptoServiceProvider md5 = new MD5CryptoServiceProvider();
            string t2 = BitConverter.ToString(md5.ComputeHash(UTF8Encoding.Default.GetBytes(ConvertString)),
, 8);
            return t2;
        }
    }

    #endregion

}

推薦
發表于 2015-1-30 18:56:28 | 只看該作者
板凳
發表于 2016-10-28 16:28:34 | 只看該作者
地板
發表于 2018-11-5 11:00:26 | 只看該作者
您需要登錄后才可以回帖 登錄 | 馬上注冊

本版積分規則

QQ|手機版|小黑屋|手機版|聯系我們|關于我們|廣告合作|蘇飛論壇 ( 豫ICP備17001017號-1 )

GMT+8, 2019-2-18 08:17

© 2017-2018

快速回復 返回頂部 返回列表
11选5任八最保本买法