Website/Pay/HaoduoPay.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Web;
using System.Text;
namespace YKT_EShop.Pay
{
public class HaoduoPay
{
public string CreateUrl(
string _customerNumber,
string _requestId,
string _productName,
string _amount,
string _orderType,
string _notifyUrl,
string _username,
string _password,
string _passwordType,
string _hmac
)
{
int i;
//构造数组;
string[] Sortedstr ={
"customerNumber="+_customerNumber,
"requestId=" + _requestId,
"productName=" + _productName,
"amount=" + _amount,
"orderType=" + _orderType,
"notifyUrl=" + _notifyUrl,
"username=" + _username,
"password=" + _password,
"passwordType=" + _passwordType,
"hmac=" + _hmac
};
StringBuilder prestr = new StringBuilder();
for (i = 0; i < Sortedstr.Length; i++)
{
if (i == Sortedstr.Length - 1)
{
prestr.Append(Sortedstr[i]);
}
else
{
prestr.Append(Sortedstr[i] + "&");
}
}
return prestr.ToString();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。