Browse Source

提交SLS日志每行回车

lcl 1 day ago
parent
commit
4bd86e38cd
1 changed files with 142 additions and 142 deletions
  1. 142 142
      Util/HaoDa/HaoDaHelper.cs

+ 142 - 142
Util/HaoDa/HaoDaHelper.cs

@@ -73,17 +73,17 @@ namespace MySystem
 
             // request.brh = BrhCode;
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(request);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/inst/mcht/new_create_mcht";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/inst/mcht/new_create_mcht";
             string result = PostWebRequest(BoxRequestUrl + "/api/inst/mcht/new_create_mcht", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒新创建商户", true);
 
             return result;
@@ -106,20 +106,20 @@ namespace MySystem
 
             
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
             reqdic.Add("instId", instId);
             reqdic.Add("mchtNo", mchtNo);
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/inst/mcht/query_mcht_audit";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/inst/mcht/query_mcht_audit";
             string result = PostWebRequest(BoxRequestUrl + "/api/inst/mcht/query_mcht_audit", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             
             LogHelper.Instance.WriteLog(logString, "好哒查询商户审核状态", true);
 
@@ -138,19 +138,19 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
             reqdic.Add("mchtNo", mchtNo); // 慧掌柜商户号
             reqdic.Add("storeNo", storeNo); // 慧掌柜门店号
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/hzg/v2/wechat/queryVerifiedResult.json";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/hzg/v2/wechat/queryVerifiedResult.json";
             string result = PostWebRequest(BoxRequestUrl + "/api/hzg/v2/wechat/queryVerifiedResult.json", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             
             LogHelper.Instance.WriteLog(logString, "好哒查询实名认证状态", true);
 
@@ -169,19 +169,19 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
             reqdic.Add("mchtNo", mchtNo); // 慧掌柜商户号
             reqdic.Add("storeNo", storeNo); // 慧掌柜门店号
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/hzg/v2/wechat/queryVerifiedQrcode.json";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/hzg/v2/wechat/queryVerifiedQrcode.json";
             string result = PostWebRequest(BoxRequestUrl + "/api/hzg/v2/wechat/queryVerifiedQrcode.json", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒查询实名认证二维码", true);
 
             return result;
@@ -207,7 +207,7 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
             reqdic.Add("mchtNo", mchtNo); //盒子的商户编号
             reqdic.Add("storeNo", storeNo); //盒子的门店编码	
@@ -221,14 +221,14 @@ namespace MySystem
             reqdic.Add("ledgerModel", ledgerModel); //分账类型:1不分账 2分账,注意只有开通了分账才能传这个字段
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/hzg/v2/unitedtrade/wechat_js_pay";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/hzg/v2/unitedtrade/wechat_js_pay";
             string result = PostWebRequest(BoxRequestUrl + "/api/hzg/v2/unitedtrade/wechat_js_pay", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒微信公众号和小程序支付", true);
 
             return result;
@@ -251,7 +251,7 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
             reqdic.Add("mchtNo", mchtNo); //盒子的商户编号
             reqdic.Add("storeNo", storeNo); //盒子的门店编码	
@@ -262,14 +262,14 @@ namespace MySystem
             reqdic.Add("confirmCode", confirmCode); //支付确认码,由4位纯数字组成,每次请求时随机生成
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/hzg/v2/unitedtrade/wechat_js_pay";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/hzg/v2/unitedtrade/wechat_js_pay";
             string result = PostWebRequest(BoxRequestUrl + "/api/hzg/v2/unitedtrade/wechat_js_pay", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒新创建商户", true);
 
             return result;
@@ -290,7 +290,7 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
 
             reqdic.Add("mchtNo", mchtNo); // 盒子的商户编号	
@@ -301,14 +301,14 @@ namespace MySystem
             reqdic.Add("refundReason", "门店消费补贴"); //退款原因        
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/hzg/v2/unitedtrade/refund";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/hzg/v2/unitedtrade/refund";
             string result = PostWebRequest(BoxRequestUrl + "/api/hzg/v2/unitedtrade/refund", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒聚合支付退款", true);
 
             return result;
@@ -326,21 +326,21 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
 
             reqdic.Add("mchtNo", mchtNo); // 慧掌柜商户号	
             reqdic.Add("storeNo", storeNo); // 慧掌柜门店号	
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/mcht/reg";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/mcht/reg";
             string result = PostWebRequest(BoxRequestUrl + "/api/v3/hzg/part/mcht/reg", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒开通分账", true);
 
             return result;
@@ -359,20 +359,20 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
             reqdic.Add("acctNo", acctNo); // 账户号	
             reqdic.Add("mchtNo", mchtNo); // 慧掌柜商户号
             reqdic.Add("storeNo", storeNo); // 慧掌柜门店号
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/acct/bind_mcht";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/acct/bind_mcht";
             string result = PostWebRequest(BoxRequestUrl + "/api/v3/hzg/part/acct/bind_mcht", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒分账接收方签约", true);
 
             return result;
@@ -389,17 +389,17 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(request);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/acct/register";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/acct/register";
             string result = PostWebRequest(BoxRequestUrl + "/api/v3/hzg/part/acct/register", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒添加分账接收方账户", true);
 
             return result;
@@ -417,19 +417,19 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
             reqdic.Add("mchtNo", mchtNo); // 慧掌柜商户号
             reqdic.Add("orderNo", orderNo); // 交易订单号	
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/acct/bind_mcht";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/acct/bind_mcht";
             string result = PostWebRequest(BoxRequestUrl + "/api/v3/hzg/part/acct/bind_mcht", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒分账交易详情查询", true);
 
             return result;
@@ -447,19 +447,19 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
             reqdic.Add("mchtNo", mchtNo); // 慧掌柜商户号
             reqdic.Add("orderNo", orderNo); // 交易订单号	
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/trade/clear/get";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/trade/clear/get";
             string result = PostWebRequest(BoxRequestUrl + "/api/v3/hzg/part/trade/clear/get", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒分账交易详情查询", true);
 
             return result;
@@ -477,17 +477,17 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(request);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/order/apply";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/order/apply";
             string result = PostWebRequest(BoxRequestUrl + "/api/v3/hzg/part/order/apply", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒订单分账申请", true);
 
             return result;
@@ -505,19 +505,19 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
             reqdic.Add("applyNo", applyNo); // 账户号	
             reqdic.Add("mchtNo", mchtNo); // 慧掌柜商户号
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/apply/query";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/apply/query";
             string result = PostWebRequest(BoxRequestUrl + "/api/v3/hzg/part/apply/query", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒订单分账结果查询", true);
 
             return result;
@@ -534,17 +534,17 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(request);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/inst/mcht/update_acct";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/inst/mcht/update_acct";
             string result = PostWebRequest(BoxRequestUrl + "/api/inst/mcht/update_acct", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒商户修改银行卡", true);
 
             return result;
@@ -562,20 +562,20 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
             reqdic.Add("mchtNo", mchtNo);
             reqdic.Add("taskId", taskId);
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/inst/mcht/query_acct_task";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/inst/mcht/query_acct_task";
             string result = PostWebRequest(BoxRequestUrl + "/api/inst/mcht/query_acct_task", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒查询修改银行卡任务审核状态", true);
 
             return result;
@@ -595,7 +595,7 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
 
             reqdic.Add("mchtNo", mchtNo); // 盒子商户号	
@@ -603,14 +603,14 @@ namespace MySystem
             reqdic.Add("subAppId", subAppId); // 公众号appid或者小程序appid	
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/hzg/v2/wechat/add_sub_config";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/hzg/v2/wechat/add_sub_config";
             string result = PostWebRequest(BoxRequestUrl + "/api/hzg/v2/wechat/add_sub_config", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             
             LogHelper.Instance.WriteLog(logString, "好哒绑定微信appid接口", true);
 
@@ -635,7 +635,7 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
 
             reqdic.Add("mchtNo", mchtNo); // 盒子商户号	
@@ -648,14 +648,14 @@ namespace MySystem
             reqdic.Add("rows", rows); // 每页大小,默认10,最大500	
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/v3/hzg/accb/to_account/query";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/v3/hzg/accb/to_account/query";
             string result = PostWebRequest(BoxRequestUrl + "/api/v3/hzg/accb/to_account/query", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒到账记录查询", true);
 
             return result;
@@ -673,21 +673,21 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
 
             reqdic.Add("mchtNo", mchtNo); // 商户号	
             reqdic.Add("id", id); // id	
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/v3/hzg/accb/to_account/get";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/v3/hzg/accb/to_account/get";
             string result = PostWebRequest(BoxRequestUrl + "/api/v3/hzg/accb/to_account/get", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒到账记录详情", true);
 
             return result;
@@ -705,21 +705,21 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
 
             reqdic.Add("mchtNo", mchtNo); // 商户号	
             reqdic.Add("outOrderNo", outOrderNo); // 商户订单号
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/hzg/v2/unitedtrade/query_status";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/hzg/v2/unitedtrade/query_status";
             string result = PostWebRequest(BoxRequestUrl + "/api/hzg/v2/unitedtrade/query_status", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒聚合支付查询", true);
 
             return result;
@@ -738,7 +738,7 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
 
             reqdic.Add("mchtNo", mchtNo); // 商户号	
@@ -746,14 +746,14 @@ namespace MySystem
             reqdic.Add("outRefundNo", outRefundNo);
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/hzg/v2/unitedtrade/refund_query";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/hzg/v2/unitedtrade/refund_query";
             string result = PostWebRequest(BoxRequestUrl + "/api/hzg/v2/unitedtrade/refund_query", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒退款查询", true);
 
             return result;
@@ -770,7 +770,7 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             
             Dictionary<string, object> request = new Dictionary<string, object>();
 
@@ -780,14 +780,14 @@ namespace MySystem
             request.Add("unionPayRate", feeRate);
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(request);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/inst/mcht/update_disc";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/inst/mcht/update_disc";
             string result = PostWebRequest(BoxRequestUrl + "/api/inst/mcht/update_disc", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒商户修改费率", true);
 
             return result;
@@ -877,9 +877,9 @@ namespace MySystem
             try
             {
                 string logString = "";
-                logString += DateTime.Now.ToString();
-                logString += postUrl;
-                logString += paramData;
+                logString += "\n" + DateTime.Now.ToString();
+                logString += "\n" + postUrl;
+                logString += "\n" + paramData;
                 byte[] postData = System.Text.Encoding.UTF8.GetBytes(paramData);
                 // 设置提交的相关参数 
                 System.Net.HttpWebRequest request = System.Net.WebRequest.Create(postUrl) as System.Net.HttpWebRequest;
@@ -910,7 +910,7 @@ namespace MySystem
                 srcString = reader.ReadToEnd();
                 ret = srcString;   //返回值赋值
                 reader.Close();
-                logString += srcString;
+                logString += "\n" + srcString;
                 
                 LogHelper.Instance.WriteLog(logString, "请求好哒API日志", true);
             }
@@ -943,21 +943,21 @@ namespace MySystem
             if (BrandId == 1) BoxRequestUrl = HaodaParam.BoxRequestUrl;
 
             string logString = "";
-            logString += DateTime.Now.ToString();
+            logString += "\n" + DateTime.Now.ToString();
             Dictionary<string, object> reqdic = new Dictionary<string, object>();
 
             reqdic.Add("fileName", fileName); // 文件名	
             reqdic.Add("action", action); // 操作类型 0 上传图片
 
             string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
-            logString += req;
+            logString += "\n" + req;
             Dictionary<string, string> headdic = GetHeader(req, BrandId, AgentTag);
             string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
-            logString += "请求头\n" + head;
-            logString += "请求参数\n" + req;
-            logString += "请求地址:" + BoxRequestUrl + "/api/auth/v1/get_file_token";
+            logString += "\n" + "请求头\n" + head;
+            logString += "\n" + "请求参数\n" + req;
+            logString += "\n" + "请求地址:" + BoxRequestUrl + "/api/auth/v1/get_file_token";
             string result = PostWebRequest(BoxRequestUrl + "/api/auth/v1/get_file_token", req, headdic);
-            logString += "返回\n" + result + "\n\n";
+            logString += "\n" + "返回\n" + result + "\n\n";
             LogHelper.Instance.WriteLog(logString, "好哒获取文件令牌接口", true);
 
             return result;