Commit 329b340e authored by gaoming's avatar gaoming

returnmessage

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