Commit ca78dd36 authored by zhanglu's avatar zhanglu

qa tractate 接口切换到cims

parent 7cf1110e
......@@ -12,12 +12,12 @@ async def answer_list_by_ids(ctx: Context, request: AnswerListRequest) -> Answer
return AnswerList(answers=[])
user_id = request.user_id
res = (await get_current_rpc_invoker()["qa/question_answer/list_by_ids_v3"](
res = (await get_current_rpc_invoker()["cims/question_answer/list_by_ids"](
answer_ids=request.answer_ids,
user_id=user_id,
)).unwrap()
return AnswerFormat(request.version, request.device_id).format_feed_card(res)
return AnswerFormat(request.version, request.device_id).format_feed_card(res.get("answer_list", []))
@bind("card/question/list_by_ids")
......
......@@ -11,7 +11,7 @@ async def tractate_list_by_ids(ctx: Context, request: TractateListRequest) -> Tr
return TractateList(tractates=[])
user_id = request.user_id
res = (await get_current_rpc_invoker()["mimas/tractate/list_by_ids"](
res = (await get_current_rpc_invoker()["cims/tractate/list_by_ids"](
tractate_ids=request.tractate_ids,
need_special_info=True,
user_id=user_id,
......
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