You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

download.php 1.5 KiB

3 years ago
12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. require_once "../lib/WxPay.Api.php";
  3. //require_once "../lib/WxPay.MicroPay.php";
  4. if(isset($_REQUEST["bill_date"]) && $_REQUEST["bill_date"] != ""){
  5. $bill_date = $_REQUEST["bill_date"];
  6. $bill_type = $_REQUEST["bill_type"];
  7. $input = new WxPayDownloadBill();
  8. $input->SetBill_date($bill_date);
  9. $input->SetBill_type($bill_type);
  10. $file = WxPayApi::downloadBill($input);
  11. echo $file;
  12. //TODO 对账单文件处理
  13. exit(0);
  14. }
  15. ?>
  16. <html>
  17. <head>
  18. <meta http-equiv="content-type" content="text/html;charset=utf-8"/>
  19. <meta name="viewport" content="width=device-width, initial-scale=1" />
  20. <title>微信支付样例-查退款单</title>
  21. </head>
  22. <body>
  23. <form action="#" method="post">
  24. <div style="margin-left:2%;">对账日期:</div><br/>
  25. <input type="text" style="width:96%;height:35px;margin-left:2%;" name="bill_date" /><br /><br />
  26. <div style="margin-left:2%;">账单类型:</div><br/>
  27. <select style="width:96%;height:35px;margin-left:2%;" name="bill_type">
  28. <option value ="ALL">所有订单信息</option>
  29. <option value ="SUCCESS">成功支付的订单</option>
  30. <option value="REFUND">退款订单</option>
  31. <option value="REVOKED">撤销的订单</option>
  32. </select><br /><br />
  33. <div align="center">
  34. <input type="submit" value="下载订单" style="width:210px; height:50px; border-radius: 15px;background-color:#FE6714; border:0px #FE6714 solid; cursor: pointer; color:white; font-size:16px;" type="button" onclick="callpay()" />
  35. </div>
  36. </form>
  37. </body>
  38. </html>