918博天堂

Server : Microsoft-IIS/10.0
System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586
User : jxgj ( 0)
PHP Version : 7.0.33
Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server
Directory :  D:/tmp_aspnet/root/cae6aa2e/15328683/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/cae6aa2e/15328683/App_Code.vywp5zcy.3.cs
?#pragma checksum "D:\wwwroot\anlian2025\wwwroot\App_Code\wxshaoma\RefundQuery.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "36643B2F3A5DC1F8BD942AD6AC9397CE85C51CEA"

#line 1 "D:\wwwroot\anlian2025\wwwroot\App_Code\wxshaoma\RefundQuery.cs"
using System;
using System.Collections.Generic;
using System.Web;

namespace WxPayAPI
{
    public class RefundQuery
    {
        /***
        * 退款查问齐全业务流程逻辑
        * @param refund_id 微信退款单号(优先使用)
        * @param out_refund_no 商户退款单号
        * @param transaction_id 微信订单号
        * @param out_trade_no 商户订单号
        * @return 退款查问了局(xml体式)
        */
        public static string Run(string refund_id, string out_refund_no, string transaction_id, string out_trade_no)
        {
            Log.Info("RefundQuery", "RefundQuery is processing...");

            WxPayData data = new WxPayData();
            if(!string.IsNullOrEmpty(refund_id))
            {
                data.SetValue("refund_id", refund_id);//微信退款单号,优先级最高
            }
            else if(!string.IsNullOrEmpty(out_refund_no))
            {
                data.SetValue("out_refund_no", out_refund_no);//商户退款单号,优先级第二
            }
            else if(!string.IsNullOrEmpty(transaction_id))
            {
                data.SetValue("transaction_id", transaction_id);//微信订单号,优先级第三
            }
            else
            {
                data.SetValue("out_trade_no", out_trade_no);//商户订单号,优先级最低
            }

            WxPayData result = WxPayApi.RefundQuery(data);//提交退款查问给API,接管返回数据

            Log.Info("RefundQuery", "RefundQuery process complete, result : " + result.ToXml());
            return result.ToPrintStr();
        }
    }
}

#line default
#line hidden