From e8eabcc42e48be8f1bff187b5043545a18d38046 Mon Sep 17 00:00:00 2001 From: Leufolium Date: Sun, 4 Feb 2024 08:04:13 +0800 Subject: [PATCH] by Robin at 20240204; moment list by mid --- app/mix/service/apiservice.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index 5c3b987d..4ad20377 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -1683,7 +1683,9 @@ func (s *Service) ApiGetMomentList(ctx *gin.Context, req *momentproto.ApiListReq func (s *Service) ApiGetMomentListByMid(ctx *gin.Context, req *momentproto.ApiListByMidReq) (voList []*momentproto.ApiMomentVO, ec errcode.ErrCode) { ec = errcode.ErrCodeMomentSrvOk - req.Mid = goproto.Int64(req.BaseRequest.Mid) + if req.Mid == nil { + req.Mid = goproto.Int64(req.BaseRequest.Mid) + } list, err := _DefaultMoment.OpListByMid(ctx, &momentproto.OpListByMidReq{ Mid: req.Mid,