|
@@ -1045,21 +1045,23 @@ namespace MySystem
|
|
|
|
|
|
|
|
public string LePassGetExpiredIdCardUrl(string merNo)
|
|
public string LePassGetExpiredIdCardUrl(string merNo)
|
|
|
{
|
|
{
|
|
|
|
|
+ string logString = "";
|
|
|
string url = LePassReqUrl + "/merchantinfo/v3/getUpdateIdCardLink";
|
|
string url = LePassReqUrl + "/merchantinfo/v3/getUpdateIdCardLink";
|
|
|
- function.WriteLog("请求地址\n" + url, "乐刷获取更新过期身份证链接");
|
|
|
|
|
|
|
+ logString += "\n请求地址\n" + url;
|
|
|
SortedList<string, string> req = new SortedList<string, string>();
|
|
SortedList<string, string> req = new SortedList<string, string>();
|
|
|
req.Add("merchantId", merNo);
|
|
req.Add("merchantId", merNo);
|
|
|
string signString = "key=" + LePassSignKey + "&" + function.BuildQueryString(req);
|
|
string signString = "key=" + LePassSignKey + "&" + function.BuildQueryString(req);
|
|
|
- function.WriteLog("待签名串\n" + signString, "乐刷获取更新过期身份证链接");
|
|
|
|
|
|
|
+ logString += "\n待签名串\n" + signString;
|
|
|
string sign = function.MD532(signString).ToUpper();
|
|
string sign = function.MD532(signString).ToUpper();
|
|
|
- function.WriteLog("签名结果\n" + sign, "乐刷获取更新过期身份证链接");
|
|
|
|
|
|
|
+ logString += "\n签名结果\n" + sign;
|
|
|
req.Add("sign", sign);
|
|
req.Add("sign", sign);
|
|
|
req.Add("trace_no", DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8));
|
|
req.Add("trace_no", DateTime.Now.ToString("yyyyMMddHHmmssfff") + function.get_Random(8));
|
|
|
req.Add("source", LePassSource);
|
|
req.Add("source", LePassSource);
|
|
|
string reqString = Newtonsoft.Json.JsonConvert.SerializeObject(req);
|
|
string reqString = Newtonsoft.Json.JsonConvert.SerializeObject(req);
|
|
|
- function.WriteLog("请求参数\n" + reqString, "乐刷获取更新过期身份证链接");
|
|
|
|
|
|
|
+ logString += "\n请求参数\n" + reqString;
|
|
|
string content = function.PostWebRequest(url, reqString, "application/json");
|
|
string content = function.PostWebRequest(url, reqString, "application/json");
|
|
|
- function.WriteLog("返回报文\n" + content, "乐刷获取更新过期身份证链接");
|
|
|
|
|
|
|
+ logString += "\n返回报文\n" + content + "\n\n\n";
|
|
|
|
|
+ LogHelper.Instance.WriteLog(logString, "乐刷获取更新过期身份证链接");
|
|
|
return content;
|
|
return content;
|
|
|
}
|
|
}
|
|
|
|
|
|