This commit is contained in:
Mrx
2026-06-07 14:47:50 +08:00
parent 0dada87a54
commit 079b5b39ef
7 changed files with 145 additions and 0 deletions

View File

@@ -7,6 +7,7 @@ import (
"qnc-server/app/main/api/internal/service"
"qnc-server/app/main/api/internal/svc"
"github.com/zeromicro/go-zero/core/logx"
)
@@ -61,6 +62,9 @@ func (l *XpayPushLogic) HandlePOST(w http.ResponseWriter, r *http.Request) {
}
ctx := r.Context()
logx.WithContext(ctx).Infof("[xpay:push] recv event=%s order_no=%s openid=%s env=%d body=%s",
notify.Event, orderNo, notify.OpenId, notify.Env, string(body))
already, _ := l.svcCtx.XpayService.AlreadyNotified(ctx, orderNo)
if already {
l.writePushResp(w, 0, "already notified")