feat: base send_sms auto_log send_mail使用False

This commit is contained in:
caoqianming 2025-09-23 16:26:07 +08:00
parent b9e0a1e891
commit d0c3dd788d
1 changed files with 2 additions and 1 deletions

View File

@ -7,7 +7,8 @@ from apps.utils.decorators import auto_log
# 实例化myLogger # 实例化myLogger
myLogger = logging.getLogger('log') myLogger = logging.getLogger('log')
@auto_log(name='阿里云短信', raise_exception=True, send_mail=True)
@auto_log(name='阿里云短信', raise_exception=True, send_mail=False)
def send_sms(phone: str, template_code: int, template_param: dict): def send_sms(phone: str, template_code: int, template_param: dict):
from aliyunsdkcore.client import AcsClient from aliyunsdkcore.client import AcsClient
from aliyunsdkcore.request import CommonRequest from aliyunsdkcore.request import CommonRequest