Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
card
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhanglu
card
Commits
ca78dd36
Commit
ca78dd36
authored
Dec 15, 2020
by
zhanglu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
qa tractate 接口切换到cims
parent
7cf1110e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
qa.py
card/views/qa/qa.py
+2
-2
tractate.py
card/views/tractate/tractate.py
+1
-1
No files found.
card/views/qa/qa.py
View file @
ca78dd36
...
@@ -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"
)
...
...
card/views/tractate/tractate.py
View file @
ca78dd36
...
@@ -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
()[
"
mima
s/tractate/list_by_ids"
](
res
=
(
await
get_current_rpc_invoker
()[
"
cim
s/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
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment