Skip to content

Commit

Permalink
微信商户违规通知地址管理
Browse files Browse the repository at this point in the history
  • Loading branch information
yaooort committed Sep 26, 2023
1 parent 3d8f3be commit 4e68e94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wechat/v3/violation.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
// Code = 0 is success
func (c *ClientV3) V3ViolationNotifyUrlCreate(ctx context.Context, url string) (wxRsp *ViolationNotifyUrlRsp, err error) {
bm := make(gopay.BodyMap)
bm.Set("url", url)
bm.Set("notify_url", url)
authorization, err := c.authorization(MethodPost, v3ViolationNotifyUrlCreate, bm)
if err != nil {
return nil, err
Expand Down Expand Up @@ -63,7 +63,7 @@ func (c *ClientV3) V3ViolationNotifyUrlQuery(ctx context.Context) (wxRsp *Violat
// Code = 0 is success
func (c *ClientV3) V3ViolationNotifyUrlUpdate(ctx context.Context, url string) (wxRsp *ViolationNotifyUrlRsp, err error) {
bm := make(gopay.BodyMap)
bm.Set("url", url)
bm.Set("notify_url", url)
authorization, err := c.authorization(MethodPut, v3ViolationNotifyUrlUpdate, bm)
if err != nil {
return nil, err
Expand Down

0 comments on commit 4e68e94

Please sign in to comment.