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
e6628af5
Commit
e6628af5
authored
Oct 24, 2019
by
yangchenglin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
首页信息流2/3号位调整
parent
33ef6c13
Show 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 @
e6628af5
...
@@ -54,7 +54,7 @@ class TopicHomeFixOperation(APIView):
...
@@ -54,7 +54,7 @@ class TopicHomeFixOperation(APIView):
def
get
(
self
,
request
):
def
get
(
self
,
request
):
try
:
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
()
data
=
self
.
rpc
[
'venus/sun/operation/home_fix/info'
](
pos
=
pos
)
.
unwrap
()
except
Exception
as
e
:
except
Exception
as
e
:
error_logger
.
error
(
u'运营位获取失败
%
s'
,
e
)
error_logger
.
error
(
u'运营位获取失败
%
s'
,
e
)
...
@@ -66,15 +66,16 @@ class TopicHomeFixOperation(APIView):
...
@@ -66,15 +66,16 @@ class TopicHomeFixOperation(APIView):
image
=
request
.
POST
.
get
(
'image'
)
image
=
request
.
POST
.
get
(
'image'
)
protocol
=
request
.
POST
.
get
(
"protocol"
)
protocol
=
request
.
POST
.
get
(
"protocol"
)
pos
=
request
.
POST
.
get
(
"pos"
,
4
)
pos
=
request
.
POST
.
get
(
"pos"
,
3
)
version
=
request
.
POST
.
get
(
"version"
,
4
)
version
=
request
.
POST
.
get
(
"version"
,
"0.0.0"
)
repeat_read
=
request
.
POST
.
get
(
"repeat_read"
,
0
)
if
not
image
or
not
protocol
:
if
not
image
or
not
protocol
:
return
{
'message'
:
'参数不全'
}
return
{
'message'
:
'参数不全'
}
try
:
try
:
self
.
rpc
[
'venus/sun/operation/home_fix/edit'
](
image
=
image
,
protocol
=
protocol
,
pos
=
pos
,
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
:
except
Exception
as
e
:
error_logger
.
error
(
u'更新失败'
,
e
)
error_logger
.
error
(
u'更新失败'
,
e
)
raise
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