From 681a1607c6432f6ec9749ccd7b0ec632f91a1d18 Mon Sep 17 00:00:00 2001 From: hailin Date: Fri, 20 Jun 2025 16:01:03 +0800 Subject: [PATCH] . --- pkg/dal/dao/news.go | 3 ++- pkg/proto/proto_biz.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/pkg/dal/dao/news.go b/pkg/dal/dao/news.go index f453ca1..e7ce0c2 100644 --- a/pkg/dal/dao/news.go +++ b/pkg/dal/dao/news.go @@ -490,7 +490,8 @@ func (dao *NewsDAO) QueryPullNew(cond *NewsPullNewCondition) (dos []*models.News } _, total, err = e.QueryEx() if err != nil { - return nil, 0, log.Errorf(err.Error()) + log.Errorf("QueryPullNew failed: %v", err) + return nil, 0, err } log.Infof(".................[DEBUG] QueryPullNew 返回数据: %+v", dos) diff --git a/pkg/proto/proto_biz.go b/pkg/proto/proto_biz.go index ba8ac27..c1e0e20 100644 --- a/pkg/proto/proto_biz.go +++ b/pkg/proto/proto_biz.go @@ -295,6 +295,7 @@ type NewsAsyncResp struct { type NewsPullNewReq struct { OrgIDs []int64 `json:"org_ids"` + Digest string `json:"digest"` } type NewsPullNewResp struct {