|
@@ -64,7 +64,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(request);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒新创建商户");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒新创建商户");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒新创建商户");
|
|
@@ -93,7 +93,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒查询商户审核状态");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒查询商户审核状态");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒查询商户审核状态");
|
|
@@ -121,7 +121,7 @@ namespace MySystem
|
|
|
reqdic.Add("storeNo", storeNo); // 慧掌柜门店号
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒查询实名认证状态");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒查询实名认证状态");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒查询实名认证状态");
|
|
@@ -149,7 +149,7 @@ namespace MySystem
|
|
|
reqdic.Add("storeNo", storeNo); // 慧掌柜门店号
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒查询实名认证二维码");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒查询实名认证二维码");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒查询实名认证二维码");
|
|
@@ -194,7 +194,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒微信公众号和小程序支付");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒微信公众号和小程序支付");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒微信公众号和小程序支付");
|
|
@@ -233,7 +233,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒支付宝服务窗支付");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒支付宝服务窗支付");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒支付宝服务窗支付");
|
|
@@ -270,7 +270,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒聚合支付退款");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒聚合支付退款");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒聚合支付退款");
|
|
@@ -300,7 +300,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒开通分账");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒开通分账");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒开通分账");
|
|
@@ -330,7 +330,7 @@ namespace MySystem
|
|
|
reqdic.Add("storeNo", storeNo); // 慧掌柜门店号
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒分账接收方签约");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒分账接收方签约");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒分账接收方签约");
|
|
@@ -355,7 +355,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(request);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒添加分账接收方账户");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒添加分账接收方账户");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒添加分账接收方账户");
|
|
@@ -383,7 +383,7 @@ namespace MySystem
|
|
|
reqdic.Add("orderNo", orderNo); // 交易订单号
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒分账交易详情查询");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒分账交易详情查询");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒分账交易详情查询");
|
|
@@ -409,7 +409,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(request);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒订单分账申请");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒订单分账申请");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒订单分账申请");
|
|
@@ -437,7 +437,7 @@ namespace MySystem
|
|
|
reqdic.Add("mchtNo", mchtNo); // 慧掌柜商户号
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒订单分账结果查询");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒订单分账结果查询");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒订单分账结果查询");
|
|
@@ -462,7 +462,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(request);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒商户修改银行卡");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒商户修改银行卡");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒商户修改银行卡");
|
|
@@ -491,7 +491,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒查询修改银行卡任务审核状态");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒查询修改银行卡任务审核状态");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒查询修改银行卡任务审核状态");
|
|
@@ -524,7 +524,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒绑定微信appid接口");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒绑定微信appid接口");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒绑定微信appid接口");
|
|
@@ -566,7 +566,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒到账记录查询");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒到账记录查询");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒到账记录查询");
|
|
@@ -596,7 +596,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒到账记录详情");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒到账记录详情");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒到账记录详情");
|
|
@@ -626,7 +626,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒聚合支付查询");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒聚合支付查询");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒聚合支付查询");
|
|
@@ -658,7 +658,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒退款查询");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒退款查询");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒退款查询");
|
|
@@ -671,8 +671,8 @@ namespace MySystem
|
|
|
|
|
|
public Dictionary<string, string> GetHeader(string req, int BrandId = 0)
|
|
|
{
|
|
|
- var BoxAppSecret = HaodaUnionParam.BoxAppSecret;
|
|
|
- if (BrandId == 1) BoxAppSecret = HaodaParam.BoxAppSecret;
|
|
|
+ var BoxAppId = HaodaUnionParam.BoxAppId;
|
|
|
+ if (BrandId == 1) BoxAppId = HaodaParam.BoxAppId;
|
|
|
|
|
|
Dictionary<string, string> headdic = new Dictionary<string, string>();
|
|
|
string timestamp = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
|
|
@@ -810,7 +810,7 @@ namespace MySystem
|
|
|
|
|
|
string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
LogHelper.Instance.WriteLog(req, "好哒获取文件令牌接口");
|
|
|
- Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req, BrandId);
|
|
|
string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
LogHelper.Instance.WriteLog("请求头\n" + head, "好哒获取文件令牌接口");
|
|
|
LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒获取文件令牌接口");
|