From 5e424e792cf01f6d89074eabcc3352677dfad458 Mon Sep 17 00:00:00 2001 From: hackrobot Date: Sun, 21 Jul 2024 14:58:18 +0800 Subject: [PATCH] update --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index ab85a98..fd74c42 100644 --- a/app/main.py +++ b/app/main.py @@ -19,7 +19,7 @@ import requests import random from tencentcloud.common import credential from tencentcloud.common.exception.tencent_cloud_sdk_exception import TencentCloudSDKException -from tencentcloud.sms.v20210111 import sms_client, models +from tencentcloud.sms.v20210111 import sms_client, models as smsmodels from tencentcloud.common.profile.client_profile import ClientProfile from tencentcloud.common.profile.http_profile import HttpProfile @@ -74,7 +74,7 @@ def sendSms(phoneNum,verification_code=None): clientProfile.language = "en-US" clientProfile.httpProfile = httpProfile client = sms_client.SmsClient(cred, "ap-beijing", clientProfile) - req = models.SendSmsRequest() + req = smsmodels.SendSmsRequest() req.SmsSdkAppId = "1400808237" req.SignName = "异度世界公众号" req.TemplateId = "1795415" #验证码为:{1}, 若非本人操作,请忽略。