by Robin at 20231223; api streamer add vas
This commit is contained in:
parent
a39852ff69
commit
247704ad75
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue