| | |
| | | tables["sender_vip_level"] = vipLv.ToString();
|
| | | var ts = System.DateTime.UtcNow - new System.DateTime(1970, 1, 1, 0, 0, 0, 0);
|
| | | tables["timestamp"] = ((long)System.Convert.ToInt64(ts.TotalSeconds)).ToString();
|
| | | tables["key"] = ToMD5(StringUtility.Contact(Sercret, tables["timestamp"]));
|
| | | tables["key"] = FileExtersion.GetStringMD5Hash(StringUtility.Contact(Sercret, tables["timestamp"]));
|
| | | HttpRequest.Instance.RequestHttpPost(VerifyPlayerNameUrl, tables, HttpRequest.defaultHttpContentType, 3,
|
| | | (bool ok, string result) =>
|
| | | {
|
| | |
| | | tables["notice"] = op_type == 2 ? string.Empty : verifyContent;
|
| | | var ts = System.DateTime.UtcNow - new System.DateTime(1970, 1, 1, 0, 0, 0, 0);
|
| | | tables["timestamp"] = ((long)System.Convert.ToInt64(ts.TotalSeconds)).ToString();
|
| | | tables["key"] = ToMD5(StringUtility.Contact(Sercret, tables["timestamp"]));
|
| | | tables["key"] = FileExtersion.GetStringMD5Hash(StringUtility.Contact(Sercret, tables["timestamp"]));
|
| | |
|
| | | HttpRequest.Instance.RequestHttpPost(VerifyFairyUrl, tables, HttpRequest.defaultHttpContentType, 3,
|
| | | (bool ok, string result) =>
|
| | |
| | |
|
| | | var ts = System.DateTime.UtcNow - new System.DateTime(1970, 1, 1, 0, 0, 0, 0);
|
| | | tables["timestamp"] = ((long)System.Convert.ToInt64(ts.TotalSeconds)).ToString();
|
| | | tables["key"] = ToMD5(StringUtility.Contact(Sercret, tables["timestamp"]));
|
| | | tables["key"] = FileExtersion.GetStringMD5Hash(StringUtility.Contact(Sercret, tables["timestamp"]));
|
| | |
|
| | | HttpRequest.Instance.RequestHttpPost(VerifyChatUrl, tables, HttpRequest.defaultHttpContentType, 3,
|
| | | (bool ok, string result) =>
|
| | |
| | | return false;
|
| | | }
|
| | | return true;
|
| | | } |
| | | |
| | | static string ToMD5(string content)
|
| | | {
|
| | | byte[] bytes = Encoding.UTF8.GetBytes(content);
|
| | | MD5 md5 = new MD5CryptoServiceProvider();
|
| | | byte[] hash = md5.ComputeHash(bytes);
|
| | | s_StringBuilder.Length = 0;
|
| | | for (int i = 0; i < hash.Length; i++)
|
| | | {
|
| | | s_StringBuilder.Append(hash[i].ToString("X2"));
|
| | | }
|
| | | return s_StringBuilder.ToString();
|
| | | }
|
| | |
|
| | | public class VerifyResponse
|