fix(apple): 修正支付金额校验字段错误

- 将金额校验字段从 FactAmount 修改为 OrderAmount
- 修正金额不一致时调用的参数,保证提示信息准确
- 优化支付成功处理逻辑,避免误判金额差异问题
This commit is contained in:
danial
2025-12-16 14:28:41 +08:00
parent e97edba460
commit 789f0be0fe

View File

@@ -219,9 +219,8 @@ func (c *AppleCardImpl) PayNotify() {
if err != nil {
c.Ctx.WriteString("FAIL")
}
if orderInfo.FactAmount != amount {
if orderInfo.OrderAmount != amount {
SolvePaySuccessByAmountDifferent(ctx, orderInfo.BankOrderId, amount, orderInfo.BankOrderId, fmt.Sprintf("金额不一致,实际金额:%.2f,拉单金额:%.2f", amount, orderInfo.OrderAmount))
return
} else {
isOk := service.SolvePaySuccess(ctx, orderInfo.BankOrderId, orderInfo.FactAmount, params["merchantId"], "支付成功")