#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Date   : 2018/4/20 15:52
# Author : lixingyun
# Description :
from huomao.money import MoneyClass
from huomao.user import User
from huomao.common import Common,REDIS_INST

users = [
    'xiawei',
    'hongtao',
    'zhangbo',
    'taotao',
    'bominming',
    'xiongyunfeng',
    'lixingyun',
    'chenweibo',
    'chenzhongtan',
    'xuhuan',
    'yerui',
    'lvwenhan',
    'weixiang',
    'tuyu',
    'lijunfeng',
    'wangxiaoqian',
    'liujiadong',
    'xiexin',
    'taohang',
    'zhangzilong',
    'caihaichuan',
    'maoxiaoyan',
    'zhangmengyi',
    'zhangxiaolong',
    'xiaojiadong',
    'hejing',
    'liuzidong',
    'douwei',
    'gongmeiling',
    'wangleilei',
    'zhangxun',
    'xuxiaodan',
    'cuihuiyan',
    'shaoshunwei',
    'tianyou',
    'liyou',
    'zhoudajian',
    'fengdingwei',
    'zhanghaoran',
    'zhonghuan',
    'wangwei',
    'guohongpeng',
    'shensuoming',
    'maxiaodi',
    'niqiao',
    'lipengpeng',
    'donghaifei',
    'pananran',
    'xieyuchen',
    'luxusheng',
    'jishaofeng',
    'fangshi',
    'liming',
    'chenlinyang',
    'wangxiaoting',
    'pengcheng',
    'liujunsheng',
    'tongjiaxin',
    'gejiayun',
    'xuyang',
    'gaokaibo',
    'qiaoxinhui',
    'chenkaihao',
    'xuechao',
    'yuxun',
    'dileilei',
    'ninghongji',
    'zhuyiheng',
    'yanpeng',
    'shangchengjun',
    'zhangqiang',
    'jianghuanzhao',
    'hexuan',
    'xiangzhiwei',
    'zhukaixiang',
    'xuran',
    'jiangmingcheng',
    'liaochunhong',
    'wangyupeng',
    'zhangpiao',
    'huozengguang',
    'xuxinyu',
    'liucan',
    'sujinlong',
    'libaiyu',
    'chenchen',
    'chenchunxiang',
    'zhouyang',
    'wangzhiwei',
    'zhangzhe',
    'wuwenying',
    'shihaosen',
    'xiefei',
    'chenlin',
    'changjunqi',
    'baoyutao',
    'zhuxiao',
    'lisiyuan',
    'machao',
    'xiawenhao',
    'gaolingyun',
    'huangrui',
    'zhaoxu',
    'yubinbin',
    'yangjichao',
    'liyu',
    'liuyilin',
    'yuhan',
]
#
# for i in users:
#     try:
#         name = 'hm_' + str(i) +'1'
#         uid = User.find_uid(name)['msg']
#         print(uid)
#         REDIS_INST.delete(f'hm_{uid}')
#     except  Exception as e:
#         print(e)

# [26342,26449]
for i in range(100):
    u = User()
    uid = u.reg('testling')
    u.bd_sj(uid)
    MoneyClass.set_money(uid, 1000000)
    print(uid)
