From 4f63f8f302a67c86ab8ccc3115dadb8b2a266782 Mon Sep 17 00:00:00 2001 From: xuyang Date: Wed, 27 Nov 2024 11:17:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=A8=E9=87=8Atest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- services/pay/client_test.go | 36 +++++++++++++++++------------------- 1 file changed, 17 insertions(+), 19 deletions(-) diff --git a/services/pay/client_test.go b/services/pay/client_test.go index bb73885..553f971 100644 --- a/services/pay/client_test.go +++ b/services/pay/client_test.go @@ -1,28 +1,26 @@ package pay import ( - "fmt" - "log" "testing" ) func TestClient_GetUserInfo(t *testing.T) { - c, err := NewClient() - if err != nil { - t.Error(err) - } - - req := CreateComplaintNotifyUrlRequest() - - req.MchId = "3503" - req.NotifyUrl = "https://pay.uu89.com/api/complaint/wxNotify/3503" - req.Type = 1 - - resp, err := c.ComplaintNotifyUrl(req) - if err != nil { - log.Fatalln(err) - } - fmt.Println(resp.GetHttpContentString()) - fmt.Println(resp.GetHttpHeaders()) + //c, err := NewClient() + //if err != nil { + // t.Error(err) + //} + // + //req := CreateComplaintNotifyUrlRequest() + // + //req.MchId = "3503" + //req.NotifyUrl = "https://pay.uu89.com/api/complaint/wxNotify/3503" + //req.Type = 1 + // + //resp, err := c.ComplaintNotifyUrl(req) + //if err != nil { + // log.Fatalln(err) + //} + //fmt.Println(resp.GetHttpContentString()) + //fmt.Println(resp.GetHttpHeaders()) }