初始化代码
This commit is contained in:
40
weixinpay/example/download.php
Normal file
40
weixinpay/example/download.php
Normal file
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
|
||||
require_once "../lib/WxPay.Api.php";
|
||||
|
||||
//require_once "../lib/WxPay.MicroPay.php";
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
if(isset($_REQUEST["bill_date"]) && $_REQUEST["bill_date"] != ""){
|
||||
|
||||
$bill_date = $_REQUEST["bill_date"];
|
||||
|
||||
$bill_type = $_REQUEST["bill_type"];
|
||||
|
||||
$input = new WxPayDownloadBill();
|
||||
|
||||
$input->SetBill_date($bill_date);
|
||||
|
||||
$input->SetBill_type($bill_type);
|
||||
|
||||
$file = WxPayApi::downloadBill($input);
|
||||
|
||||
echo $file;
|
||||
|
||||
//TODO 对账单文件处理
|
||||
|
||||
exit(0);
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
|
||||
|
||||
Reference in New Issue
Block a user