| | |
| | | import time
|
| | | import json
|
| | |
|
| | | Def_Sort_IndexList_Interval = IpyGameDataPY.GetFuncCfg('BourseUpdataCD') #五分钟更新一次子索引列表
|
| | |
|
| | | g_lastSortTimeForQueryTypeDict = {} #记录对应查询类型上次更新子索引列表时间
|
| | | g_dict_Of_QueryTypeIndexList = {} #储存对应查询类型的排序列表的字典
|
| | |
|
| | |
| | | lastSortTick = g_lastSortTimeForQueryTypeDict.get(queryType, 0)
|
| | |
|
| | | queryTypeList = g_dict_Of_QueryTypeIndexList.get(queryType, None)
|
| | | Def_Sort_IndexList_Interval = IpyGameDataPY.GetFuncCfg('BourseUpdataCD') #五分钟更新一次子索引列表
|
| | | if queryTypeList == None or tick - lastSortTick > Def_Sort_IndexList_Interval:
|
| | | SortIndexList(queryType)#重新排序指定类型
|
| | | lastSortTick = tick
|