Commit ecef6843 authored by zhanglu's avatar zhanglu

🎸 feat: 直播去除user_id传参

parent 3cb3f96d
......@@ -33,10 +33,8 @@ async def live_list_by_ids(ctx: Context, request: LiveListRequest) -> LiveList:
if not request.live_ids:
return LiveList(lives=[])
user_id = request.user_id
res = (await get_current_rpc_invoker()["mimas/live/get_clannels_url/audience"](
ids=request.live_ids,
user_id=user_id,
)).unwrap()
return await format_lives(request.version, request.device_id, res)
......@@ -47,10 +45,8 @@ async def live_notice_list_by_ids(ctx: Context, request: LiveNoticeListRequest)
if not request.live_notice_ids:
return LiveList(lives=[])
user_id = request.user_id
res = (await get_current_rpc_invoker()["mimas/live/get_live_notice_v2"](
live_ids=request.live_notice_ids,
# user_id=user_id,
)).unwrap()
return await format_lives(request.version, request.device_id, res)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment