update
This commit is contained in:
@@ -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}, 若非本人操作,请忽略。
|
||||
|
||||
Reference in New Issue
Block a user