|
@@ -371,7 +371,8 @@ class SerialNumberView(View):
|
|
|
if unused_uid_count < warning_count:
|
|
|
# 限制一天提醒一次
|
|
|
redis_obj.set_data(redis_key, 1, 60 * 60 * 24)
|
|
|
- email_content = '{}服{}的uid数量少于{}个,请及时处理'.format(CONFIG_INFO, platform, warning_count)
|
|
|
+ email_content = '{}服{}的uid数量少于{}个,剩余数量:{},请及时处理'.format(
|
|
|
+ CONFIG_INFO, platform, warning_count, unused_uid_count)
|
|
|
S3Email().faEmail(email_content, 'servers@ansjer.com')
|
|
|
except Exception as e:
|
|
|
LOGGER.info('发送提醒邮件异常: error_line:{}, error_msg:{}'.format(e.__traceback__.tb_lineno, repr(e)))
|