请求完成设置缓存

This commit is contained in:
白茶清欢 2024-06-03 18:47:47 +08:00
parent 3e5e0f8f1b
commit 81d01affc9

View File

@ -159,6 +159,9 @@ func (hc *HttpClient) Request() *define.Response {
if response.RestyResponse, err = hc.request.Send(); nil != err {
time.Sleep(time.Duration(hc.reqConfig.RetryRule.RetryTimeInterval) * time.Millisecond)
}
// 设置缓存
response.IsCache, response.CacheError = hc.setCacheResult(response)
}
return nil