From 7f7e3b43c3cd2ca032230eb85f7397cba717e52b Mon Sep 17 00:00:00 2001 From: danial Date: Mon, 20 Jan 2025 23:51:50 +0800 Subject: [PATCH] =?UTF-8?q?fix(service):=20=E4=BF=AE=E6=94=B9=E9=80=9A?= =?UTF-8?q?=E7=9F=A5=E5=95=86=E6=88=B7=E6=9C=8D=E5=8A=A1=E4=B8=AD=E7=9A=84?= =?UTF-8?q?=20HTTP=20=E8=AF=B7=E6=B1=82=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将发送通知商户服务中的 HTTP 请求方法从 POST 改为 GET - 在两个不同的函数中进行了此修改,以确保一致性 --- internal/service/sendNotifyMerchantService.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/service/sendNotifyMerchantService.go b/internal/service/sendNotifyMerchantService.go index 64e77f0..82622d3 100644 --- a/internal/service/sendNotifyMerchantService.go +++ b/internal/service/sendNotifyMerchantService.go @@ -24,7 +24,7 @@ func (c *SendNotifyMerchantService) SendNotifyToMerchant(bankOrderId string) *da notifyInfo := notify.GetNotifyInfoByBankOrderId(bankOrderId) notifyUrl := notifyInfo.Url logs.Info(fmt.Sprintf("boss管理后台手动触发订单回调,url=%s", notifyUrl)) - req := httplib.Post(notifyUrl) + req := httplib.Get(notifyUrl) response, err := req.String() if err != nil { logs.Error("回调发送失败,fail:", err) @@ -48,7 +48,7 @@ func (c *SendNotifyMerchantService) SelfSendNotify(bankOrderId string) *datas.Ke keyDataJSON := new(datas.KeyDataJSON) keyDataJSON.Code = 200 - req := httplib.Post(notifyInfo.Url) + req := httplib.Get(notifyInfo.Url) response, err := req.String() if err != nil {