Exemple #1
0
def init_client():
    """
    初始化
    :return:
    """
    global collection
    collection = mongo_conn()
    global mysql_client
    mysql_client = mysql_conn()
    global rights_list
    rights_list = [
        "累积航空里程", "赠送航空意外险", "加油返现金", "取现优惠", "刷六次免次年", "校园版特权", "有效期内免年费"
    ]
    global bz_list
    bz_list = ["双币卡", "单币卡"]
    global brand_list
    brand_list = ["银联", "VISA", "MasterCard", "JCB", "美国运通"]
    global type_list
    type_list = [
        "特色主题卡", "商务旅行卡", "网络/游戏卡", "卡通粉丝卡", "时尚族群卡", "其他", "NBA系列", "标准信用卡",
        "区域特色卡", "无限/白金卡", "商务卡系列", "校园版专区"
    ]
    global name_list
    name_list = list()
    aggre_for_name()
    global type_dict
    type_dict = dict()
Exemple #2
0
def init_client():
    """
    初始化
    :return:
    """
    global collection
    collection = mongo_conn()
    global mysql_client
    mysql_client = mysql_conn()