by Robin at 20231223; api streamer add vas

This commit is contained in:
Leufolium 2023-12-23 15:47:57 +08:00
parent a39852ff69
commit 247704ad75
1 changed files with 9 additions and 0 deletions

View File

@ -956,6 +956,15 @@ func (s *Service) ApiGetStreamerListByMid(ctx *gin.Context, req *streamerproto.A
ec = errcode.ErrCodeStreamerSrvFail ec = errcode.ErrCodeStreamerSrvFail
return return
} }
userVas, err := _DefaultVas.GetUserVasInfo(ctx, util.DerefInt64(streamer.Mid))
if err != nil {
logger.Error("GetUserVasInfo fail, req: %v, err: %v", util.ToJson(req), err)
ec = errcode.ErrCodeStreamerSrvFail
return
}
streamer.WechatLockType = goproto.Int32(userVas.WechatLockType)
streamer.WechatContact = goproto.String(userVas.WechatContact)
streamer.WechatCoinPrice = goproto.Int64(userVas.WechatCoinPrice)
return return
} }