|
@@ -81,7 +81,10 @@ class NotificationView(View):
|
|
detect_med_type = 0 # 0推送旧机制 1存库不推送,2推送存库
|
|
detect_med_type = 0 # 0推送旧机制 1存库不推送,2推送存库
|
|
# 暂时注销
|
|
# 暂时注销
|
|
if have_pkey:
|
|
if have_pkey:
|
|
- res_data = {'code': 0, 'msg': 'success11111111111111!'}
|
|
|
|
|
|
+ if SERVER_TYPE != "Ansjer.formal_settings":
|
|
|
|
+ res_data = {'code': 0, 'msg': 'Push once every 10 seconds'}
|
|
|
|
+ else:
|
|
|
|
+ res_data = {'code': 0, 'msg': 'Push it once a minute'}
|
|
return JsonResponse(status=200, data=res_data)
|
|
return JsonResponse(status=200, data=res_data)
|
|
|
|
|
|
# 数据库读取数据
|
|
# 数据库读取数据
|