Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
sun
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
谢林臻
sun
Commits
26f071ba
Commit
26f071ba
authored
Aug 14, 2019
by
haowang
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://git.wanmeizhensuo.com/alpha/sun
into haow/dev
parents
3e21dcf4
be60d3fd
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
reply.py
api/reply.py
+3
-3
user.py
api/user.py
+2
-2
No files found.
api/reply.py
View file @
26f071ba
...
...
@@ -86,7 +86,7 @@ class ReplyManageListView(APIView):
def
get
(
self
,
request
):
page
=
int
(
request
.
GET
.
get
(
'page'
,
1
))
limit
=
int
(
request
.
GET
.
get
(
'limit'
,
10
))
id_
=
request
.
GET
.
get
(
'
id'
,
None
)
topic_id
=
request
.
GET
.
get
(
'topic_
id'
,
None
)
content
=
request
.
GET
.
get
(
'content'
,
None
)
topic_content
=
request
.
GET
.
get
(
'topic_content'
,
None
)
user_name
=
request
.
GET
.
get
(
'user_name'
,
None
)
...
...
@@ -117,8 +117,8 @@ class ReplyManageListView(APIView):
if
user_name
:
other_filters
[
'user_name'
]
=
user_name
filters
=
{}
if
id_
:
filters
[
'
id'
]
=
int
(
id_
)
if
topic_id
:
filters
[
'
topic_id'
]
=
int
(
topic_id
)
if
content
:
filters
[
'content__contains'
]
=
content
.
strip
()
if
belong_type
:
...
...
api/user.py
View file @
26f071ba
...
...
@@ -95,10 +95,10 @@ class UserUpdateOrCreate(APIView):
class
PictorialUserList
(
APIView
):
def
get
(
self
,
request
):
id_
=
request
.
GET
.
get
(
'id'
)
id_
=
request
.
GET
.
get
(
'
pictorial_
id'
)
offset
=
int
(
request
.
GET
.
get
(
'page'
,
0
))
count
=
int
(
request
.
GET
.
get
(
'limit'
,
10
))
filters
=
{
'pictorial_id'
:
id_
}
filters
=
{
'pictorial_id'
:
id_
,
'is_online'
:
True
}
try
:
data
=
self
.
rpc
[
'venus/sun/pictorial/user/list'
](
filters
=
filters
,
offset
=
(
offset
-
1
)
*
count
,
count
=
count
)
.
unwrap
()
except
Exception
as
e
:
...
...
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