| | |
| | | if ipyData.GetUnlockDefault():
|
| | | # 默认激活的不处理
|
| | | continue
|
| | | if ipyData.GetCustomPlayerID():
|
| | | # 玩家定制的不处理
|
| | | continue
|
| | | if not GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_PDict_FaceState, faceID):
|
| | | # 未激活的不处理
|
| | | continue
|
| | |
| | | if ipyData.GetUnlockDefault():
|
| | | GameWorld.DebugLog("默认解锁的头像不用添加: faceID=%s" % (faceID), playerID)
|
| | | return
|
| | | if ipyData.GetCustomPlayerID():
|
| | | GameWorld.DebugLog("玩家定制的头像不用添加: faceID=%s" % (faceID), playerID)
|
| | | return
|
| | | ipyExpireSeconds = ipyData.GetExpireMinutes() * 60
|
| | |
|
| | | curTime = int(time.time())
|
| | |
| | | if not ipyData:
|
| | | return
|
| | | if ipyData.GetUnlockDefault():
|
| | | return
|
| | | if ipyData.GetCustomPlayerID():
|
| | | return
|
| | | GameWorld.Log("删除头像: faceID=%s,notifyMail=%s" % (faceID, notifyMail), playerID)
|
| | | GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_PDict_FaceState, faceID, 0)
|
| | |
| | | if ipyData:
|
| | | if ipyData.GetUnlockDefault():
|
| | | return True
|
| | | if ipyData.GetCustomPlayerID() and ipyData.GetCustomPlayerID() == curPlayer.GetPlayerID():
|
| | | return True
|
| | |
|
| | | return False
|
| | |
|