update
This commit is contained in:
parent
2d13b9696b
commit
a47f6df2e3
@ -89,11 +89,11 @@ class SMSEngine:
|
|||||||
self.sms_types = {}
|
self.sms_types = {}
|
||||||
|
|
||||||
def create_client(self):
|
def create_client(self):
|
||||||
baiDuSmsConfig = BceClientConfiguration(
|
baiDuSmsConfig = awaitify(BceClientConfiguration(
|
||||||
credentials=BceCredentials(self.access_key, self.access_key_secret),
|
credentials=awaitify(BceCredentials(self.access_key, self.access_key_secret)),
|
||||||
endpoint=self.host
|
endpoint=self.host
|
||||||
)
|
))
|
||||||
return sms.SmsClient(baiDuSmsConfig)
|
return awaitify(sms.SmsClient(baiDuSmsConfig))
|
||||||
|
|
||||||
async def send(self, stype, template_id, phone, params) -> dict:
|
async def send(self, stype, template_id, phone, params) -> dict:
|
||||||
try:
|
try:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user