fix: 收银台bug
This commit is contained in:
parent
12d22f7437
commit
3985f4f744
|
|
@ -260,8 +260,12 @@ func WxOrderQuery(ctx context.Context, wxConfig WxPay, orderNo string) (PayOrder
|
||||||
case "CLOSED":
|
case "CLOSED":
|
||||||
tradeState = "CLOSED"
|
tradeState = "CLOSED"
|
||||||
}
|
}
|
||||||
amountTotal := wxRsp.Response.Amount.Total
|
amountTotal := 0
|
||||||
payerTotal := wxRsp.Response.Amount.PayerTotal
|
payerTotal := 0
|
||||||
|
if wxRsp.Response.Amount != nil {
|
||||||
|
amountTotal = wxRsp.Response.Amount.Total
|
||||||
|
payerTotal = wxRsp.Response.Amount.PayerTotal
|
||||||
|
}
|
||||||
|
|
||||||
outTradeNo, _ := strconv.Atoi(wxRsp.Response.OutTradeNo)
|
outTradeNo, _ := strconv.Atoi(wxRsp.Response.OutTradeNo)
|
||||||
return PayOrderQueryInfo{
|
return PayOrderQueryInfo{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue