Commit e6628af5 authored by yangchenglin's avatar yangchenglin

首页信息流2/3号位调整

parent 33ef6c13
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment