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 ...@@ -12,12 +12,12 @@ async def answer_list_by_ids(ctx: Context, request: AnswerListRequest) -> Answer
return AnswerList(answers=[]) return AnswerList(answers=[])
user_id = request.user_id 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, answer_ids=request.answer_ids,
user_id=user_id, user_id=user_id,
)).unwrap() )).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") @bind("card/question/list_by_ids")
......
...@@ -11,7 +11,7 @@ async def tractate_list_by_ids(ctx: Context, request: TractateListRequest) -> Tr ...@@ -11,7 +11,7 @@ async def tractate_list_by_ids(ctx: Context, request: TractateListRequest) -> Tr
return TractateList(tractates=[]) return TractateList(tractates=[])
user_id = request.user_id 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, tractate_ids=request.tractate_ids,
need_special_info=True, need_special_info=True,
user_id=user_id, 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