- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
string makesig(string mid, string apiid, string method, string secret, string[] param)
{
string[] fullparams = new string[] { "api_id=" + apiid, "method=" + method, "v=3.0", "format=JSON" };
string methodparams = String.Join("©", param);
string fullparams_j = String.Join("©", fullparams);
string fpr = String.Join("©", new string[] { fullparams_j, methodparams });
string[] fpr_s = fpr.Split(new char[] { Convert.ToChar("©") });
Array.Sort(fpr_s);
fpr = String.Join("", fpr_s);
string last = String.Concat(mid, fpr, secret);
return getMd5Hash(last);
}