Jerry 6 лет назад
Родитель
Сommit
a9b29c459c
2 измененных файлов с 4 добавлено и 4 удалено
  1. 2 2
      alipay_client_test.go
  2. 2 2
      alipay_server_api.go

+ 2 - 2
alipay_client_test.go

@@ -52,8 +52,8 @@ func TestAliPayClient_AliPayTradeCreate(t *testing.T) {
 	body := make(BodyMap)
 	body.Set("subject", "创建订单")
 	body.Set("buyer_id", "2088802095984694")
-	body.Set("out_trade_no", "GZ201901301040355706100466")
-	body.Set("total_amount", "101.00")
+	body.Set("out_trade_no", "GZ201901301040355706100468")
+	body.Set("total_amount", "0.01")
 	//创建订单
 	aliRsp, err := client.AliPayTradeCreate(body)
 	if err != nil {

+ 2 - 2
alipay_server_api.go

@@ -57,7 +57,7 @@ func ParseAliPayNotifyResult(req *http.Request) (notifyRsp *AliPayNotifyRequest,
 	notifyRsp.GmtRefund = req.FormValue("gmt_refund")
 	notifyRsp.GmtClose = req.FormValue("gmt_close")
 	billList := req.FormValue("fund_bill_list")
-	//log.Println("billList:", billList)
+	log.Println("billList:", billList)
 	if billList != null {
 		bills := make([]FundBillListInfo, 0)
 		err = json.Unmarshal([]byte(billList), &bills)
@@ -70,7 +70,7 @@ func ParseAliPayNotifyResult(req *http.Request) (notifyRsp *AliPayNotifyRequest,
 	}
 	notifyRsp.PassbackParams = req.FormValue("passback_params")
 	detailList := req.FormValue("voucher_detail_list")
-	//log.Println("detailList:", detailList)
+	log.Println("detailList:", detailList)
 	if detailList != null {
 		details := make([]VoucherDetailListInfo, 0)
 		err = json.Unmarshal([]byte(detailList), &details)