This commit is contained in:
ziming 2025-06-10 10:04:13 +08:00
parent 07b62a9725
commit 4639e6a347
2 changed files with 1 additions and 6 deletions

View File

@ -39,7 +39,7 @@ func NewHTTPServer(
srv.Route("/voucher/").POST("notifyRetry/{id}", cmb.NotifyRetry)
srv.Route("/voucher/").POST("queryOrder/{order_no}", cmb.QueryOrder)
srv.Route("/voucher/").POST("registerTag/{product_no}", cmb.RegisterTag)
srv.Route("/voucher/").POST("pushWechatQuery/{product_no}", cmb.PushWechatQuery)
srv.Route("/voucher/").POST("pushWechatQuery", cmb.PushWechatQuery)
srv.Route("/voucher/").POST("pushWechatRetry/{product_no}", cmb.PushWechatRetry)
v1.RegisterCmbHTTPServer(srv, cmb)

View File

@ -132,11 +132,6 @@ func (this *CmbService) PushWechatQuery(ctx http.Context) error {
return fmt.Errorf("req is empty")
}
productNo := ctx.Vars().Get("product_no")
if productNo == "" {
req.ProductNo = productNo
}
if req.StartTime == "" || req.EndTime == "" {
return fmt.Errorf("start_time or end_time is empty")
}