Files
g.hnyhua.cn/Mtxfw.Utility/WXPay.DownloadBill.cs

32 lines
1.2 KiB
C#
Raw Permalink Normal View History

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();
}
}
}