DTcms.API/DTcms.API.Payment.alipaymb/Core.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.IO;
using System.Security.Cryptography;
using System.Text;
using System.Web;
namespace DTcms.API.Payment.alipaymb
{
public class Core
{
public static System.Collections.Generic.Dictionary<string, string> FilterPara(System.Collections.Generic.Dictionary<string, string> dicArrayPre)
{
System.Collections.Generic.Dictionary<string, string> dicArray = new System.Collections.Generic.Dictionary<string, string>();
foreach (System.Collections.Generic.KeyValuePair<string, string> temp in dicArrayPre)
{
if (temp.Key.ToLower() != "sign" && temp.Key.ToLower() != "sign_type" && temp.Value != "" && temp.Value != null)
{
dicArray.Add(temp.Key, temp.Value);
}
}
return dicArray;
}
public static System.Collections.Generic.Dictionary<string, string> SortPara(System.Collections.Generic.Dictionary<string, string> dicArrayPre)
{
System.Collections.Generic.SortedDictionary<string, string> dicTemp = new System.Collections.Generic.SortedDictionary<string, string>(dicArrayPre);
return new System.Collections.Generic.Dictionary<string, string>(dicTemp);
}
public static string CreateLinkString(System.Collections.Generic.Dictionary<string, string> dicArray)
{
System.Text.StringBuilder prestr = new System.Text.StringBuilder();
foreach (System.Collections.Generic.KeyValuePair<string, string> temp in dicArray)
{
prestr.Append(temp.Key + "=" + temp.Value + "&");
}
int nLen = prestr.Length;
prestr.Remove(nLen - 1, 1);
return prestr.ToString();
}
public static string CreateLinkStringUrlencode(System.Collections.Generic.Dictionary<string, string> dicArray, System.Text.Encoding code)
{
System.Text.StringBuilder prestr = new System.Text.StringBuilder();
foreach (System.Collections.Generic.KeyValuePair<string, string> temp in dicArray)
{
prestr.Append(temp.Key + "=" + HttpUtility.UrlEncode(temp.Value, code) + "&");
}
int nLen = prestr.Length;
prestr.Remove(nLen - 1, 1);
return prestr.ToString();
}
public static void LogResult(string sWord)
{
string strPath = HttpContext.Current.Server.MapPath("log");
strPath = strPath + "\\" + System.DateTime.Now.ToString().Replace(":", "") + ".txt";
System.IO.StreamWriter fs = new System.IO.StreamWriter(strPath, false, System.Text.Encoding.Default);
fs.Write(sWord);
后面还有 28 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。