|
@@ -348,10 +348,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)
|