Commit 9f2989bb authored by edz's avatar edz

发送验证码

parent 42a634a6
import path_setting
from in_common.base_request import BaseRequest
#获取验证码
class verification_code_request(BaseRequest):
def __init__(self):
self.data = self.api_load(path_setting.VERIFICATION_CODE_CONFIG)
#获取验证码
def verification_code(self, phone,type,verifier):
self.params["phone"] = phone
self.params["type"] = type
self.params["verifier"] = verifier
return self.api_send(self.data["verfication_code"])
if __name__ == '__main__':
# 个人中心
print(user_request().personal_center())
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment