瀏覽代碼

fix:optimize code

jimmyyem 7 月之前
父節點
當前提交
1b593a1d79
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      hook/fastgpt/resty.go

+ 1 - 1
hook/fastgpt/resty.go

@@ -11,8 +11,8 @@ func NewResty() *resty.Client {
 	client := resty.New()
 	logger := newLogger()
 	client.SetRetryCount(2).
-		SetHeader("Content-Type", "application/json").
 		SetLogger(logger).
+		SetHeader("Content-Type", "application/json").
 		SetBaseURL("https://fastgpt.gkscrm.com/api").
 		SetHeader("Authorization", "Bearer "+getToken())