From 2308c9fb3299fa911c7e8e4d41333bdc84f0f7fa Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 30 Jul 2020 17:41:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=94=AF=E4=BB=98=E5=AE=9D?= =?UTF-8?q?=E6=94=AF=E4=BB=98=E6=B5=8B=E8=AF=95=E6=A1=88=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _test/alipay-app.php | 5 ++--- _test/alipay-bill.php | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/_test/alipay-app.php b/_test/alipay-app.php index 0070eb3..2efcc13 100644 --- a/_test/alipay-app.php +++ b/_test/alipay-app.php @@ -28,10 +28,9 @@ try { $result = $pay->apply([ 'out_trade_no' => time(), // 商户订单号 'total_amount' => '1', // 支付金额 - 'subject' => 'test subject', // 支付订单描述 + 'subject' => '支付宝订单标题', // 支付订单描述 ]); - echo '
';
-    var_export($result);
+    echo $result;
 } catch (\Exception $e) {
     echo $e->getMessage();
 }
diff --git a/_test/alipay-bill.php b/_test/alipay-bill.php
index af5c493..4bc7797 100644
--- a/_test/alipay-bill.php
+++ b/_test/alipay-bill.php
@@ -26,7 +26,7 @@ try {
 
     // 请参考(请求参数):https://docs.open.alipay.com/api_15/alipay.data.dataservice.bill.downloadurl.query
     $result = $pay->apply([
-        'bill_date' => '2018-10-03', // 账单时间(日账单yyyy-MM-dd,月账单 yyyy-MM)
+        'bill_date' => '2020-07-03', // 账单时间(日账单yyyy-MM-dd,月账单 yyyy-MM)
         'bill_type' => 'signcustomer', // 账单类型(trade指商户基于支付宝交易收单的业务账单,signcustomer是指基于商户支付宝余额收入及支出等资金变动的帐务账单)
     ]);
     echo '
';