| | |
| | | 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年起
|
| | |
| | | if updDictValue == 0:
|
| | | curPlayer.NomalDictDelProperty(keyName, 0)
|
| | | else:
|
| | | curPlayer.NomalDictAddProperty(keyName, updDictValue)
|
| | | import PlayerControl
|
| | | PlayerControl.NomalDictSetProperty(curPlayer, keyName, updDictValue)
|
| | | #DebugLog("SetDictValueByBit keyFormat=%s,isBin=%s,bit=%s,keyNum=%s,keyName=%s,dictValue=%s,bitIndex=%s,updDictValue=%s"
|
| | | # % (keyFormat, isBin, bit, keyNum, keyName, dictValue, bitIndex, updDictValue))
|
| | | return dictValue, updDictValue
|