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":
|
||||
tradeState = "CLOSED"
|
||||
}
|
||||
amountTotal := wxRsp.Response.Amount.Total
|
||||
payerTotal := wxRsp.Response.Amount.PayerTotal
|
||||
amountTotal := 0
|
||||
payerTotal := 0
|
||||
if wxRsp.Response.Amount != nil {
|
||||
amountTotal = wxRsp.Response.Amount.Total
|
||||
payerTotal = wxRsp.Response.Amount.PayerTotal
|
||||
}
|
||||
|
||||
outTradeNo, _ := strconv.Atoi(wxRsp.Response.OutTradeNo)
|
||||
return PayOrderQueryInfo{
|
||||
|
|
|
|||
Loading…
Reference in New Issue