|
|
@@ -9,6 +9,7 @@ import (
|
|
|
"bytes"
|
|
|
"encoding/json"
|
|
|
"fmt"
|
|
|
+ "log"
|
|
|
"net/http"
|
|
|
)
|
|
|
|
|
|
@@ -44,9 +45,10 @@ 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)
|
|
|
if billList != null {
|
|
|
bills := make([]FundBillListInfo, 0)
|
|
|
- err = json.Unmarshal([]byte(billList), bills)
|
|
|
+ err = json.Unmarshal([]byte(billList), &bills)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|
|
|
@@ -56,9 +58,10 @@ func ParseAliPayNotifyResult(req *http.Request) (notifyRsp *AliPayNotifyRequest,
|
|
|
}
|
|
|
notifyRsp.PassbackParams = req.FormValue("passback_params")
|
|
|
detailList := req.FormValue("voucher_detail_list")
|
|
|
+ log.Println("detailList:", detailList)
|
|
|
if detailList != null {
|
|
|
details := make([]VoucherDetailListInfo, 0)
|
|
|
- err = json.Unmarshal([]byte(detailList), details)
|
|
|
+ err = json.Unmarshal([]byte(detailList), &details)
|
|
|
if err != nil {
|
|
|
return nil, err
|
|
|
}
|