| | |
| | | import time
|
| | | import copy
|
| | | import ConfigParser
|
| | | import PyGameData
|
| | |
|
| | | import md5
|
| | | #---------------------------------------------------------------------
|
| | |
| | | ## 是否跨服服务器
|
| | | return ToIntDef(ReadChConfig.GetPyMongoConfig("Merge", "IsMergeServer"), 0)
|
| | |
|
| | | def GetCrossZoneName():
|
| | | ## 跨服服务器分区名,标记一起跨服分区的名字,配置在跨服服务器,子服不用配置,由跨服服务器同步
|
| | | if IsCrossServer():
|
| | | return ReadChConfig.GetPyMongoConfig("Merge", "CrossZoneName")
|
| | | return PyGameData.g_crossZoneName
|
| | |
|
| | | ## 时间格式转换成数值时间,可参考datetime.datetime.fromtimestamp(102645645)
|
| | | # @param timeNum
|
| | | # @return 时间数值 1970年起
|