zhangzengfei
2024-04-16 bbcf45df17344e01bf75a589c17d3fcf7e7cc8da
修改日志显示
2个文件已修改
3 ■■■■ 已修改文件
service/resend.go 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
util/http.go 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
service/resend.go
@@ -11,6 +11,7 @@
    var cacheMod models.Cache
    cacheItems, _ := cacheMod.FindAll()
    logger.Debug("Start resend task. cache len:%d", len(cacheItems))
    for _, c := range cacheItems {
        if !util.SendData([]byte(c.Data), config.ForwardConf.SyncServer) {
            c.UpdateRetryCount()
util/http.go
@@ -13,7 +13,7 @@
func SendData(payload []byte, url string) bool {
    body, err := HttpPost(url, nil, payload)
    if err != nil {
        logger.Error("Post request failure, url:%s, err:%s", err.Error())
        logger.Error("Post request failure, url:%s, err:%s", url, err.Error())
        return false
    }