# -*- encoding=utf8 -*-
__author__ = "xiaohesheng"

"""
case_tag:mdm-web,100086,用例集id2226
主数据平台:统一登录接口，第一步获取验证码，第二步登录系统，第三步平台登录验证token
"""


from common.common_func import commonFuc
import time

module = "spd3"
#获取验证码接口
import os
url = commonFuc().get_api_url() + commonFuc().get_business_data(module, "VerifyCode_url")
print("aaaaaaaaaaaaaaaaaa"+url)

# token = commonFuc().get_token(module, "cancel_enc_user_id")
# timestamp = str(int(time.time()))
# payload = commonFuc().get_business_data(module, "payload")
# headers = commonFuc().get_business_data(module, "post_headers", token, timestamp,
#                                         commonFuc().get_business_data(module, "cancel_contentType"))
# result = commonFuc().http_post(url, payload, headers)
# check_dict = commonFuc().get_business_data(module, "cancel_checkDict")
# commonFuc().check_result(check_dict, result)