diff --git a/models/table_create.txt b/models/table_create.txt index 7c9f38f..020e610 100644 --- a/models/table_create.txt +++ b/models/table_create.txt @@ -1,4 +1,4 @@ - CREATE TABLE `sms_template` ( +CREATE TABLE `sms_template` ( `id` varchar(32) NOT NULL COMMENT 'id', `name` varchar(32) DEFAULT NULL COMMENT '模板名称', `template_type` varchar(32) DEFAULT NULL COMMENT '模板类型', diff --git a/smssend/__pycache__/smssend.cpython-310.pyc b/smssend/__pycache__/smssend.cpython-310.pyc index de55d18..e807e41 100644 Binary files a/smssend/__pycache__/smssend.cpython-310.pyc and b/smssend/__pycache__/smssend.cpython-310.pyc differ diff --git a/smssend/init.py b/smssend/init.py index bb31744..9d5ad43 100644 --- a/smssend/init.py +++ b/smssend/init.py @@ -42,7 +42,7 @@ async def send_vcode(phone: str, stype: str, vcode: dict) -> dict: return await engine.send_vcode(phone, stype, vcode) -async def send_sms(phone: str, stype: str, params: dict) -> dict: +async def send_sms(phone: str, stype: str) -> dict: engine = get_sms_engine() return await engine.send_sms(phone, stype, params) diff --git a/test/test_smssend.py b/test/test_smssend.py index ec57a54..7ce2bcd 100644 --- a/test/test_smssend.py +++ b/test/test_smssend.py @@ -286,7 +286,7 @@ async def main(): # results.append(("generate_sms_code(自定义参数)", r)) # results.append(("check_sms_code(错误验证码)", await test_check_sms_code_wrong())) - results.append(("check_sms_code(正确验证码)", await test_check_sms_code_correct())) + # results.append(("check_sms_code(正确验证码)", await test_check_sms_code_correct())) # results.append(("check_sms_code(无效codeid)", await test_check_sms_code_invalid_codeid())) # results.append(("check_sms_code(已过期)", await test_check_sms_code_expired()))