|
@@ -1309,8 +1309,12 @@ namespace MySystem
|
|
|
|
|
|
public string LDZZBPost(Dictionary<string, object> req, string path)
|
|
|
{
|
|
|
+ string logString = "";
|
|
|
string aeskey = function.MD5_16(function.get_Random(10)).ToUpper();
|
|
|
- string data = AesEncrypt(Newtonsoft.Json.JsonConvert.SerializeObject(req), aeskey);
|
|
|
+ logString += "\nAES密钥\n" + aeskey;
|
|
|
+ string reqString = Newtonsoft.Json.JsonConvert.SerializeObject(req);
|
|
|
+ logString += "\n请求体\n" + reqString;
|
|
|
+ string data = AesEncrypt(reqString, aeskey);
|
|
|
string encryptKey = LDZZBEncrypt(aeskey, LDZZBPlatformPublicKey);
|
|
|
SortedList<string, string> reqdic = new SortedList<string, string>();
|
|
|
reqdic.Add("appId", LDZZBAgentId);
|
|
@@ -1322,7 +1326,11 @@ namespace MySystem
|
|
|
string sign = LDZZBSignData(signString);
|
|
|
reqdic.Add("sign", sign);
|
|
|
string reqBody = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
+ logString += "\n请求参数\n" + reqString;
|
|
|
+ logString += "\n请求地址\n" + LDZZBRequestUrl + "/" + path;
|
|
|
string content = function.PostWebRequest(LDZZBRequestUrl + "/" + path, reqBody, "application/json");
|
|
|
+ logString += "\n返回报文\n" + content + "\n\n";
|
|
|
+ LogHelper.Instance.WriteLog(logString, "设置联动掌中宝服务费费率");
|
|
|
return content;
|
|
|
}
|
|
|
|