This commit is contained in:
512song committed 2023-09-18 19:46:01 +08:00
1 parent e1da612c61
commit 48cb4d6187
3 files changed
+267 -16

No files matched your search

+5 -3
View File
@@ -152,7 +152,9 @@
"cell_type": "code",
"execution_count": null,
"id": "4b2b5d76-665f-4dfe-bbd3-5c80abd8c3e3",
"metadata": {},
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"from tencentcloud.common import credential\n",
@@ -181,7 +183,7 @@
" print('no phone')\n",
"print(dict2)\n",
"\n",
"\n",
"#dict2 = {375: {'phone': '13793180751', 'code': '0379208'}}\n",
"for k, v in dict2.items():\n",
" phone = '+86'+v['phone']\n",
" yzm = v['code']\n",
@@ -207,7 +209,7 @@
" req.SessionContext = \"\"\n",
" req.ExtendCode = \"\"\n",
" req.SenderId = \"\"\n",
" #resp = client.SendSms(req)\n",
" resp = client.SendSms(req)\n",
" dict3 = json.loads(resp.to_json_string(indent=2))\n",
"\n",
" print(v['phone'],dict3['SendStatusSet'][0][\"Message\"])\n",