fix(service): 修改通知商户服务中的 HTTP 请求方法

- 将发送通知商户服务中的 HTTP 请求方法从 POST 改为 GET
- 在两个不同的函数中进行了此修改,以确保一致性
This commit is contained in:
danial
2025-01-20 23:51:50 +08:00
parent 58b0cb60c5
commit 7f7e3b43c3

View File

@@ -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 {