|
@@ -54,13 +54,13 @@ class CustomizedPushView(View):
|
|
|
}
|
|
|
# customized_push(**kwargs)
|
|
|
# 异步推送消息和保存数据
|
|
|
- # push_thread = threading.Thread(
|
|
|
- # target=customized_push,
|
|
|
- # kwargs=kwargs)
|
|
|
- # push_thread.start()
|
|
|
+ push_thread = threading.Thread(
|
|
|
+ target=customized_push,
|
|
|
+ kwargs=kwargs)
|
|
|
+ push_thread.start()
|
|
|
|
|
|
# 更新推送状态
|
|
|
- # customized_push_qs.update(push_satus=True)
|
|
|
+ customized_push_qs.update(push_satus=True)
|
|
|
return response.json(0)
|
|
|
except Exception as e:
|
|
|
return HttpResponse(repr(e), status=500)
|