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
1
Merge Requests
1
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
alpha
sun
Commits
b4f181eb
Commit
b4f181eb
authored
Oct 25, 2019
by
杨成林
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'ycl/index' into 'master'
首页信息流2/3号位调整 See merge request
!388
parents
33ef6c13
e6628af5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
operation.py
api/operation.py
+5
-4
No files found.
api/operation.py
View file @
b4f181eb
...
...
@@ -54,7 +54,7 @@ class TopicHomeFixOperation(APIView):
def
get
(
self
,
request
):
try
:
pos
=
request
.
GET
.
get
(
"pos"
,
4
)
pos
=
request
.
GET
.
get
(
"pos"
,
3
)
data
=
self
.
rpc
[
'venus/sun/operation/home_fix/info'
](
pos
=
pos
)
.
unwrap
()
except
Exception
as
e
:
error_logger
.
error
(
u'运营位获取失败
%
s'
,
e
)
...
...
@@ -66,15 +66,16 @@ class TopicHomeFixOperation(APIView):
image
=
request
.
POST
.
get
(
'image'
)
protocol
=
request
.
POST
.
get
(
"protocol"
)
pos
=
request
.
POST
.
get
(
"pos"
,
4
)
version
=
request
.
POST
.
get
(
"version"
,
4
)
pos
=
request
.
POST
.
get
(
"pos"
,
3
)
version
=
request
.
POST
.
get
(
"version"
,
"0.0.0"
)
repeat_read
=
request
.
POST
.
get
(
"repeat_read"
,
0
)
if
not
image
or
not
protocol
:
return
{
'message'
:
'参数不全'
}
try
:
self
.
rpc
[
'venus/sun/operation/home_fix/edit'
](
image
=
image
,
protocol
=
protocol
,
pos
=
pos
,
version
=
version
)
.
unwrap
()
version
=
version
,
repeat_read
=
repeat_read
)
.
unwrap
()
except
Exception
as
e
:
error_logger
.
error
(
u'更新失败'
,
e
)
raise
...
...
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