This commit is contained in:
wuhao 2020-10-20 21:24:29 +08:00
parent b23bedd986
commit d24555b979
2 changed files with 4 additions and 2 deletions

View File

@ -31,14 +31,16 @@ class LoadPayData(LoadData):
sql = "select * from paylist where state=2 and ctime>=%s"
await cur.execute(sql, (self.last_act_time - 3600,))
rss = await cur.fetchall()
res_data = []
for p in rss:
if p.get('serverid') not in self.serverid_list:
continue
p['data'] = p['data2']
res_data.append(p)
await cur.close()
pay_mysql.close()
logger.info(f'{self.game_name}查询到{len(rss)}条订单')
return rss
return res_data
async def update_data(self, data):
if not data:

View File

@ -50,7 +50,7 @@ class LoadUserData(LoadData):
db = s['db']
where['uid'] = {"$regex": "^" + str(sid) + "_"}
user_info_cursor = self.mongo_client[db]['userinfo'].find(where, projection)
data_list = await user_info_cursor.to_list(length=65535)
data_list = await user_info_cursor.to_list(length=999999)
for user in data_list:
user['lasttime'] = user['logintime']
user['vip'] = user.get('vip', 0)