Exemplo n.º 1
0
    '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)
Exemplo n.º 2
0
 def create_user(self, phone=True):
     uid = User.reg('noble')
     logger_test_api.info(f'注册用户UID:{uid}')
     if phone:
         User.bd_sj(uid)
     return uid
Exemplo n.º 3
0
 def create_user(self):
     uid = User.reg('noble')
     logger_test_api.info(f'注册用户UID:{uid}')
     User.bd_sj(uid)
     return uid
Exemplo n.º 4
0
 def create_user(self):
     uid = User.reg('noble')
     logger_test_api.info(f'注册用户UID:{uid}')
     User.bd_sj(uid)
     MoneyClass.set_money(uid, 9000000)
     return uid