1、修复gateway图片上传临时目录权限问题。2、修复docker etcd生产环境连接问题

This commit is contained in:
2024-10-02 13:50:26 +08:00
parent a8e6836731
commit e5ba001080
4 changed files with 10 additions and 115 deletions

View File

@@ -71,7 +71,12 @@ func (w *WestDexService) CallAPI(code string, reqData map[string]interface{}) (r
logx.Errorf("【西部数据请求】发送请求错误: %v", err)
return nil, errors.New("业务异常")
}
defer httpResp.Body.Close()
defer func(Body io.ReadCloser) {
err := Body.Close()
if err != nil {
}
}(httpResp.Body)
// 检查请求是否成功
if httpResp.StatusCode == 200 {