diff --git a/apps/utils/sms.py b/apps/utils/sms.py index 070fd6fb..9d70a665 100644 --- a/apps/utils/sms.py +++ b/apps/utils/sms.py @@ -8,7 +8,7 @@ from apps.utils.decorators import auto_log # 实例化myLogger myLogger = logging.getLogger('log') -@auto_log(name='阿里云短信', raise_exception=False, send_mail=True) +@auto_log(name='阿里云短信', raise_exception=True, send_mail=True) def send_sms(phone: str, template_code: int, template_param: dict): config = get_sysconfig() client = AcsClient(config['sms']['xn_key'], config['sms']['xn_secret'], 'default')