Commit e56abba3 authored by gaoming's avatar gaoming

Merge branch 'returnmessage'

parents 5b84f971 329b340e
......@@ -30,10 +30,17 @@ class Statistic(View):
# 迈可思, 趣米, 广点通, 爱思助手激活回调(增加点入)
#self.async_active_callback.delay(**data)
self.async_active_callback(**data)
return JsonResponse({
"code":0,#0为成功,其他为失败
"failMsg":"",#错误信息
})
result={
"error": 0,
"message": "",
"extra": null,
"data": {},
"user_type": {}
}
return JsonResponse(result)
def post(self,request):
......@@ -43,10 +50,15 @@ class Statistic(View):
#self.async_active_callback.delay(**data)
self.async_active_callback(**data)
return JsonResponse({
"code":0,#0为成功,其他为失败
"failMsg":"",#错误信息
})
result={
"error": 0,
"message": "",
"extra": null,
"data": {},
"user_type": {}
}
return JsonResponse(result)
@csrf_exempt
def dispatch(self, *args, **kwargs):
......
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