修复产品修改、删除
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package topup
|
||||
|
||||
import (
|
||||
"github.com/smartwalle/alipay/v3"
|
||||
"net/http"
|
||||
|
||||
"tianyuan-api/apps/gateway/internal/logic/topup"
|
||||
"tianyuan-api/apps/gateway/internal/svc"
|
||||
)
|
||||
|
||||
func AliTopUpCallbackHandler(svcCtx *svc.ServiceContext) http.HandlerFunc {
|
||||
return func(w http.ResponseWriter, r *http.Request) {
|
||||
l := topup.NewAliTopUpCallbackLogic(r.Context(), svcCtx)
|
||||
err := l.AliTopUpCallback(r)
|
||||
if err != nil {
|
||||
alipay.ACKNotification(w)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user