fix(service): 修改通知商户服务中的 HTTP 请求方法
- 将发送通知商户服务中的 HTTP 请求方法从 POST 改为 GET - 在两个不同的函数中进行了此修改,以确保一致性
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user