feat: MBTI头像与用户规则链路升级,三端页面与接口同步
Made-with: Cursor
This commit is contained in:
@@ -798,6 +798,13 @@ func MiniprogramPayNotify(c *gin.Context) {
|
||||
).Delete(&model.Order{})
|
||||
processReferralCommission(db, beneficiaryUserID, totalAmount, orderSn, &order)
|
||||
}
|
||||
// 支付成功后实时推送到 webhook;失败记录,交给定时补偿任务统一重推
|
||||
if pushErr := pushPaidOrderWebhook(db, &order); pushErr != nil {
|
||||
fmt.Printf("[PayNotify] webhook 推送失败: orderSn=%s, err=%v\n", orderSn, pushErr)
|
||||
markOrderWebhookResult(db, orderSn, false, pushErr)
|
||||
} else {
|
||||
markOrderWebhookResult(db, orderSn, true, nil)
|
||||
}
|
||||
return nil
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user