Files
g.hnyhua.cn/Mtxfw.Utility/WXPay.DownloadBill.cs
2026-02-07 15:48:27 +08:00

32 lines
1.2 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Web;
namespace Mtxfw.Utility
{
public class DownloadBill
{
/***
* 下载对账单完整业务流程逻辑
* @param bill_date 下载对账单的日期格式20140603一次只能下载一天的对账单
* @param bill_type 账单类型
* ALL返回当日所有订单信息默认值
* SUCCESS返回当日成功支付的订单
* REFUND返回当日退款订单
* REVOKED已撤销的订单
* @return 对账单结果xml格式
*/
public static string Run(Mtxfw.Utility.Config config, string bill_date, string bill_type)
{
Log.Info("DownloadBill", "DownloadBill is processing...");
WxPayData data = new WxPayData();
data.SetValue("bill_date", bill_date);//账单日期
data.SetValue("bill_type", bill_type);//账单类型
WxPayData result = WxPayApi.DownloadBill(config,data);//提交下载对账单请求给API接收返回结果
Log.Info("DownloadBill", "DownloadBill process complete, result : " + result.ToXml());
return result.ToPrintStr();
}
}
}