ソースを参照

改一下返回信息

pengzhibo168 5 年 前
コミット
0188dd8e0e
1 ファイル変更4 行追加1 行削除
  1. 4 1
      Controller/DetectController.py

+ 4 - 1
Controller/DetectController.py

@@ -81,7 +81,10 @@ class NotificationView(View):
         detect_med_type = 0  # 0推送旧机制 1存库不推送,2推送存库
         # 暂时注销
         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)
 
         # 数据库读取数据