This commit is contained in:
李子铭 2025-03-17 14:30:37 +08:00
parent 17ba4bc361
commit 1fecc06a17
1 changed files with 19 additions and 19 deletions

View File

@ -107,25 +107,24 @@ func (s *VoucherService) DecryptBody(ctx http.Context) error {
func (s *VoucherService) QueryWechatVoucherNotifyUrl(ctx http.Context) error { func (s *VoucherService) QueryWechatVoucherNotifyUrl(ctx http.Context) error {
//bodyBytes, err := io.ReadAll(ctx.Request().Body) bodyBytes, err := io.ReadAll(ctx.Request().Body)
//if err != nil { if err != nil {
// return err return err
//} }
//
//var req *v1.QueryWechatVoucherNotifyUrlRequest var req *v1.QueryWechatVoucherNotifyUrlRequest
//if err = json.Unmarshal(bodyBytes, &req); err != nil { if err = json.Unmarshal(bodyBytes, &req); err != nil {
// return err return err
//} }
//
//rep, err := s.VoucherBiz.WechatCpnRepo.QueryCallback(ctx, req.MchId, req.MchCertNo) rep, err := s.VoucherBiz.WechatCpnRepo.QueryCallback(ctx)
//if err != nil { if err != nil {
// return err return err
//} }
//
//return ctx.JSON(200, &v1.QueryWechatVoucherNotifyUrlReply{ return ctx.JSON(200, &v1.QueryWechatVoucherNotifyUrlReply{
// Url: *rep.NotifyUrl, Url: *rep.NotifyUrl,
//}) })
return nil
} }
func (s *VoucherService) SetWechatVoucherNotifyUrl(ctx http.Context) error { func (s *VoucherService) SetWechatVoucherNotifyUrl(ctx http.Context) error {
@ -149,6 +148,7 @@ func (s *VoucherService) SetWechatVoucherNotifyUrl(ctx http.Context) error {
// MchId: req.MchId, // MchId: req.MchId,
// Url: *rep.NotifyUrl, // Url: *rep.NotifyUrl,
//}) //})
return nil return nil
} }