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
d66c1e6f
Commit
d66c1e6f
authored
6 years ago
by
Davve
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改日志错误
parent
c95817d1
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
6 deletions
+7
-6
group.py
api/group.py
+2
-1
pick.py
api/pick.py
+3
-3
topic.py
api/topic.py
+2
-2
No files found.
api/group.py
View file @
d66c1e6f
...
@@ -116,6 +116,6 @@ class GroupRelatedUserGET(APIView):
...
@@ -116,6 +116,6 @@ class GroupRelatedUserGET(APIView):
try
:
try
:
self
.
rpc
[
'venus/sun/group/user/edit'
](
id
=
group_id
,
user_id
=
user_id
,
data
=
data
)
.
unwrap
()
self
.
rpc
[
'venus/sun/group/user/edit'
](
id
=
group_id
,
user_id
=
user_id
,
data
=
data
)
.
unwrap
()
except
Exception
as
e
:
except
Exception
as
e
:
error_logger
.
error
(
u'编辑小组用户
%
d
信息失败
%
s'
%
(
user_id
,
e
))
error_logger
.
error
(
u'编辑小组用户
%
s
信息失败
%
s'
%
(
user_id
,
e
))
raise
raise
return
return
\ No newline at end of file
This diff is collapsed.
Click to expand it.
api/pick.py
View file @
d66c1e6f
...
@@ -47,7 +47,7 @@ class UpdateOrCreateView(APIView):
...
@@ -47,7 +47,7 @@ class UpdateOrCreateView(APIView):
try
:
try
:
data
=
self
.
rpc
[
'venus/sun/pick/get'
](
id
=
id
)
.
unwrap
()
data
=
self
.
rpc
[
'venus/sun/pick/get'
](
id
=
id
)
.
unwrap
()
except
Exception
as
e
:
except
Exception
as
e
:
error_logger
.
error
(
u'获取
%
d
-pcik信息失败
%
s'
%
(
id
,
e
))
error_logger
.
error
(
u'获取
%
s
-pcik信息失败
%
s'
%
(
id
,
e
))
raise
raise
return
{
'data'
:
data
}
return
{
'data'
:
data
}
...
@@ -89,7 +89,7 @@ class UpdateOrCreateView(APIView):
...
@@ -89,7 +89,7 @@ class UpdateOrCreateView(APIView):
try
:
try
:
self
.
rpc
[
'venus/sun/pick/edit'
](
id
=
id
,
data
=
data
)
.
unwrap
()
self
.
rpc
[
'venus/sun/pick/edit'
](
id
=
id
,
data
=
data
)
.
unwrap
()
except
Exception
as
e
:
except
Exception
as
e
:
error_logger
.
error
(
u'编辑
%
d
-pcik信息失败
%
s'
%
(
id
,
e
))
error_logger
.
error
(
u'编辑
%
s
-pcik信息失败
%
s'
%
(
id
,
e
))
raise
raise
return
{
return
{
'message'
:
'操作成功'
'message'
:
'操作成功'
...
@@ -118,7 +118,7 @@ class PickUserListView(APIView):
...
@@ -118,7 +118,7 @@ class PickUserListView(APIView):
try
:
try
:
data
=
self
.
rpc
[
dispatch_rpc_endpoint
[
pick_type
]](
offset
=
(
offset
-
1
)
*
limit
,
limit
=
limit
,
filters
=
filters
)
.
unwrap
()
data
=
self
.
rpc
[
dispatch_rpc_endpoint
[
pick_type
]](
offset
=
(
offset
-
1
)
*
limit
,
limit
=
limit
,
filters
=
filters
)
.
unwrap
()
except
Exception
as
e
:
except
Exception
as
e
:
error_logger
.
error
(
u'获取
%
d
-pcik信息失败
%
s'
%
(
pick_id
,
e
))
error_logger
.
error
(
u'获取
%
s
-pcik信息失败
%
s'
%
(
pick_id
,
e
))
raise
raise
return
data
return
data
...
...
This diff is collapsed.
Click to expand it.
api/topic.py
View file @
d66c1e6f
...
@@ -35,7 +35,7 @@ class TopicUpdateOrCreateView(APIView):
...
@@ -35,7 +35,7 @@ class TopicUpdateOrCreateView(APIView):
try
:
try
:
data
=
self
.
rpc
[
'venus/sun/topic/get'
](
id
=
id
)
.
unwrap
()
data
=
self
.
rpc
[
'venus/sun/topic/get'
](
id
=
id
)
.
unwrap
()
except
Exception
as
e
:
except
Exception
as
e
:
error_logger
.
error
(
u'获取
%
d
-帖子信息失败
%
s'
%
(
id
,
e
))
error_logger
.
error
(
u'获取
%
s
-帖子信息失败
%
s'
%
(
id
,
e
))
raise
raise
return
{
'data'
:
data
}
return
{
'data'
:
data
}
...
@@ -59,7 +59,7 @@ class TopicUpdateOrCreateView(APIView):
...
@@ -59,7 +59,7 @@ class TopicUpdateOrCreateView(APIView):
try
:
try
:
self
.
rpc
[
'venus/sun/topic/edit'
](
id
=
id
,
data
=
data
)
.
unwrap
()
self
.
rpc
[
'venus/sun/topic/edit'
](
id
=
id
,
data
=
data
)
.
unwrap
()
except
Exception
as
e
:
except
Exception
as
e
:
error_logger
.
error
(
u'创建/编辑
%
d
-帖子信息失败
%
s'
%
(
id
,
e
))
error_logger
.
error
(
u'创建/编辑
%
s
-帖子信息失败
%
s'
%
(
id
,
e
))
raise
raise
return
{
return
{
'message'
:
'更新成功'
'message'
:
'更新成功'
...
...
This diff is collapsed.
Click to expand it.
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