From dab00e7fb2d7dcdf62a6ac8ff4bddfcef215b441 Mon Sep 17 00:00:00 2001 From: wangchuxiao Date: Thu, 31 Mar 2022 15:01:49 +0800 Subject: [PATCH] tag and set private tips --- config/config.yaml | 2 +- internal/rpc/office/office.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/config.yaml b/config/config.yaml index a78e23f01..1110249e7 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -148,7 +148,7 @@ log: rotationTime: 24 remainRotationCount: 3 #日志数量 #日志级别 6表示全都打印,测试阶段建议设置为6 - remainLogLevel: 4 + remainLogLevel: 6 elasticSearchSwitch: false elasticSearchAddr: [ 127.0.0.1:9201 ] elasticSearchUser: "" diff --git a/internal/rpc/office/office.go b/internal/rpc/office/office.go index d33e8c9b0..a335e1474 100644 --- a/internal/rpc/office/office.go +++ b/internal/rpc/office/office.go @@ -218,7 +218,7 @@ func (s *officeServer) GetTagSendLogs(_ context.Context, req *pbOffice.GetTagSen func (s *officeServer) GetUserTagByID(_ context.Context, req *pbOffice.GetUserTagByIDReq) (resp *pbOffice.GetUserTagByIDResp, err error) { log.NewInfo(req.OperationID, utils.GetSelfFuncName(), "req: ", req.String()) - resp = &pbOffice.GetUserTagByIDResp{CommonResp: &pbOffice.CommonResp{}} + resp = &pbOffice.GetUserTagByIDResp{CommonResp: &pbOffice.CommonResp{}, Tag: &pbOffice.Tag{}} tag, err := db.DB.GetTagByID(req.UserID, req.TagID) if err != nil { log.NewError(req.OperationID, utils.GetSelfFuncName(), "GetTagByID failed", err.Error())