def get_publish_article_data():
    data_list = []
    data = GetData.get_json_data(
        'publish_audit_article.json')['mp_publish_article']
    data_list.append(
        (data['title'], data['content'], data['channel'], data['exp']))
    return data_list
Exemplo n.º 2
0
def get_login_data():
    # 空列表存储数据
    login_list = []
    # 读取json数据
    data = GetData.get_json_data("login.json")
    # 遍历
    for i in data:
        # 添加数据到列表
        login_list.append((i.get("desc"),
                           i.get("account"),
                           i.get("password"),
                           i.get("toast"),
                           i.get("exp")
                           ))
    return login_list
Exemplo n.º 3
0
def get_mis_login_data():
    data_list = []
    data = GetData.get_json_data('publish_audit_article.json')['mis_login']
    data_list.append((data['account'], data['password'], data['exp']))
    return data_list
Exemplo n.º 4
0
def get_audit_data():
    data_list = []
    data = GetData.get_json_data(
        'publish_audit_article.json')['mis_audit_article']
    data_list.append((data['title'], data['exp']))
    return data_list
Exemplo n.º 5
0
def get_mp_login_data():
    data_list = []
    data = GetData.get_json_data('publish_audit_article.json')['mp_login']
    data_list.append((data['phone'], data['code'], data['exp']))
    return data_list