浏览代码

剩余uid数量少于5000邮件提醒

locky 1 年之前
父节点
当前提交
8feb62530e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Controller/SerialNumberController.py

+ 2 - 2
Controller/SerialNumberController.py

@@ -341,10 +341,10 @@ class SerialNumberView(View):
             p2p_type = int(p2p_type)
 
             try:
-                # 剩余uid数量少于2000邮件提醒
+                # 剩余uid数量少于5000邮件提醒
                 unused_uid_count = UIDModel.objects.filter(vpg_id=vpg_id, p2p_type=p2p_type, status=0).count()
                 LOGGER.info('uid剩余数量:{}'.format(unused_uid_count))
-                warning_count = 2000
+                warning_count = 5000
                 if unused_uid_count < warning_count:
                     # 限制一天提醒一次
                     redis_obj.set_data('uid_count_warning_time_limit', 1, 60 * 60 * 24)