Browse Source

fix:修复fwh post请求错误问题

Jerry Liang 1 năm trước cách đây
mục cha
commit
8f20042101
1 tập tin đã thay đổi với 1 bổ sung và 1 xóa
  1. 1 1
      service/utils/httpClient/httpClient.go

+ 1 - 1
service/utils/httpClient/httpClient.go

@@ -119,7 +119,7 @@ func HttpPost(url string, body any, opt *HttpClientOptions) ([]byte, error) {
 	// 创建请求
 	req, err := http.NewRequest(
 		http.MethodPost,
-		"https://oss.franklinwh.com/api-user/user/login",
+		url,
 		payload.Reader)
 	if err != nil {
 		zap.L().Error("NewRequest failed.", zap.String("err", err.Error()))