fix wx payment

This commit is contained in:
liangzai 2025-01-21 21:19:27 +08:00
parent 4faff92c4c
commit b2ae8adc01

View File

@ -38,7 +38,7 @@ func (l *WechatPayCallbackLogic) WechatPayCallback(w http.ResponseWriter, r *htt
} }
amount := lzUtils.ToWechatAmount(order.Amount) amount := lzUtils.ToWechatAmount(order.Amount)
if &amount != notification.Amount.Total { if amount != *notification.Amount.Total {
logx.Errorf("微信支付回调,金额不一致") logx.Errorf("微信支付回调,金额不一致")
return nil return nil
} }