|
|
@@ -438,6 +438,88 @@ namespace MySystem
|
|
|
}
|
|
|
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// 分账接收方账户余额查询
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="acctNo">账户号</param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public string QueryAccountBalance(string acctNo)
|
|
|
+ {
|
|
|
+ LogHelper.Instance.WriteLog(DateTime.Now.ToString(), "好哒分账接收方账户余额查询");
|
|
|
+ Dictionary<string, object> reqdic = new Dictionary<string, object>();
|
|
|
+
|
|
|
+ reqdic.Add("acctNo", acctNo); // 账户号
|
|
|
+
|
|
|
+ string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
+ LogHelper.Instance.WriteLog(req, "好哒分账接收方账户余额查询");
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
+ LogHelper.Instance.WriteLog("请求头\n" + head, "好哒分账接收方账户余额查询");
|
|
|
+ LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒分账接收方账户余额查询");
|
|
|
+ LogHelper.Instance.WriteLog("请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/acct/balance/get", "好哒分账接收方账户余额查询");
|
|
|
+ string result = PostWebRequest(BoxRequestUrl + "/api/v3/hzg/part/acct/balance/get", req, headdic);
|
|
|
+ LogHelper.Instance.WriteLog("返回\n" + result + "\n\n", "好哒分账接收方账户余额查询");
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 分账接收方提现申请
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="applyNo">申请批次号</param>
|
|
|
+ /// <param name="acctNo">账户号</param>
|
|
|
+ /// <param name="amount">提现金额(分)</param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public string ApplyWithdrawal(string applyNo, string acctNo, string amount)
|
|
|
+ {
|
|
|
+ LogHelper.Instance.WriteLog(DateTime.Now.ToString(), "好哒分账接收方提现申请");
|
|
|
+ Dictionary<string, object> reqdic = new Dictionary<string, object>();
|
|
|
+
|
|
|
+ reqdic.Add("applyNo", applyNo); // 申请批次号
|
|
|
+ reqdic.Add("acctNo", acctNo); // 账户号
|
|
|
+ reqdic.Add("amount", amount); // 提现金额(分)
|
|
|
+
|
|
|
+ string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
+ LogHelper.Instance.WriteLog(req, "好哒分账接收方提现申请");
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
+ LogHelper.Instance.WriteLog("请求头\n" + head, "好哒分账接收方提现申请");
|
|
|
+ LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒分账接收方提现申请");
|
|
|
+ LogHelper.Instance.WriteLog("请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/acct/withdrawal/apply", "好哒分账接收方提现申请");
|
|
|
+ string result = PostWebRequest(BoxRequestUrl + "/api/v3/hzg/part/acct/withdrawal/apply", req, headdic);
|
|
|
+ LogHelper.Instance.WriteLog("返回\n" + result + "\n\n", "好哒分账接收方提现申请");
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// 分账接收方提现结果查询
|
|
|
+ /// </summary>
|
|
|
+ /// <param name="applyNo">申请批次号</param>
|
|
|
+ /// <param name="acctNo">账户号</param>
|
|
|
+ /// <returns></returns>
|
|
|
+ public string QueryApplyWithdrawalStatus(string applyNo, string acctNo)
|
|
|
+ {
|
|
|
+ LogHelper.Instance.WriteLog(DateTime.Now.ToString(), "好哒分账接收方提现结果查询");
|
|
|
+ Dictionary<string, object> reqdic = new Dictionary<string, object>();
|
|
|
+
|
|
|
+ reqdic.Add("applyNo", applyNo); // 申请批次号
|
|
|
+ reqdic.Add("acctNo", acctNo); // 账户号
|
|
|
+
|
|
|
+ string req = Newtonsoft.Json.JsonConvert.SerializeObject(reqdic);
|
|
|
+ LogHelper.Instance.WriteLog(req, "好哒分账接收方提现结果查询");
|
|
|
+ Dictionary<string, string> headdic = GetHeader(req);
|
|
|
+ string head = Newtonsoft.Json.JsonConvert.SerializeObject(headdic);
|
|
|
+ LogHelper.Instance.WriteLog("请求头\n" + head, "好哒分账接收方提现结果查询");
|
|
|
+ LogHelper.Instance.WriteLog("请求参数\n" + req, "好哒分账接收方提现结果查询");
|
|
|
+ LogHelper.Instance.WriteLog("请求地址:" + BoxRequestUrl + "/api/v3/hzg/part/acct/withdrawal/query", "好哒分账接收方提现结果查询");
|
|
|
+ string result = PostWebRequest(BoxRequestUrl + "/api/v3/hzg/part/acct/withdrawal/query", req, headdic);
|
|
|
+ LogHelper.Instance.WriteLog("返回\n" + result + "\n\n", "好哒分账接收方提现结果查询");
|
|
|
+
|
|
|
+ return result;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
public Dictionary<string, string> GetHeader(string req)
|
|
|
{
|
|
|
Dictionary<string, string> headdic = new Dictionary<string, string>();
|