mongodb基础操作方法增加redis缓存策略

This commit is contained in:
2026-01-13 11:25:15 +08:00
parent e7e450f7cf
commit aa3063c1de

View File

@@ -59,10 +59,8 @@ func doRequest(ctx context.Context, method string, url string, headers map[strin
return
}
client := Httpclient
if len(data) > 0 {
client = Httpclient.Clone()
}
if len(headers) > 0 {
client = Httpclient.Clone()
client.SetHeaderMap(headers)
} else {
client.SetHeader("Authorization", g.RequestFromCtx(ctx).GetHeader("Authorization"))