1
This commit is contained in:
parent
961d6fadec
commit
1b55e11bc0
@ -74,7 +74,9 @@ def refreshData(row, data_list, data_info):
|
||||
harm = safeDiv(row[5], row[7])
|
||||
win_times = safeDiv(row[6], row[7])
|
||||
num = row[9]
|
||||
print(row[10])
|
||||
if (time.time() > row[10]):
|
||||
print(111111111)
|
||||
num = 0
|
||||
data_list.append((row[0], row[1].decode('utf-8'), row[2], kill, alive_time, harm, win_times, row[6], num))
|
||||
data_list.sort(key=key_info, reverse=True)
|
||||
@ -146,7 +148,7 @@ def internalDayReadMysqlData():
|
||||
#每日定时读取mysql里的数据生成排行榜写入redis后php读取redis返回客户端显示
|
||||
def dayReadMysqlData(rushtime):
|
||||
internalDayReadMysqlData()
|
||||
tornado.ioloop.IOLoop.current().call_later(getDaySeconds(time.time(), 1) + rushtime,
|
||||
tornado.ioloop.IOLoop.current().call_at(getDaySeconds(time.time(), 1) + rushtime,
|
||||
lambda : dayReadMysqlData(rushtime)
|
||||
)
|
||||
|
||||
@ -269,5 +271,4 @@ if __name__ == "__main__":
|
||||
tornado.ioloop.IOLoop.current().call_at(getDaySeconds(time.time(), 1) + conf['day_rushtime'],
|
||||
lambda : dayReadMysqlData(conf['day_rushtime'])
|
||||
)
|
||||
|
||||
tornado.ioloop.IOLoop.current().start()
|
||||
|
@ -274,7 +274,7 @@ class PayController{
|
||||
$vip_level = $vip['level'];
|
||||
$vip_icon = $vip['vipicon'];
|
||||
}
|
||||
$rowVip = $conn->execQueryOne('SELECT reward_id, reward_status, today_reward_id, today_reward_status ' .
|
||||
$rowVip = $conn->execQueryOne('SELECT reward_id, vipid, reward_status, today_reward_id, today_reward_status ' .
|
||||
' FROM vipinfo WHERE accountid=:accountid AND vipid=:vipid;',
|
||||
array(
|
||||
':accountid' => $account_id,
|
||||
|
Loading…
x
Reference in New Issue
Block a user