ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerNewGuyCard.py
@@ -47,6 +47,7 @@
import EventReport
import ItemCommon
import DataRecordPack
import ShareDefine
import PlayerCoin
import md5
@@ -187,7 +188,7 @@
    
    #给予物品
    itemID, itemCnt, isBand = itemInfo
    if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBand, [IPY_GameWorld.rptItem]):
    if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem]):
        #背包空间不足
        PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_676165", [IPY_GameWorld.rptItem])
        return True
@@ -238,7 +239,7 @@
    #给予物品
    itemID, itemCnt, isBand = itemInfo
    GameWorld.DebugLog("    itemInfo=%s" % str(itemInfo))
    if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBand, [IPY_GameWorld.rptItem]):
    if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem]):
        #背包空间不足
        PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_676165", [IPY_GameWorld.rptItem])
        return True
@@ -256,7 +257,7 @@
#  @return 序号
def CheckMarkIdCardRule(curPlayer, cardCode):
    idName = curPlayer.GetAccID()
    platform = GameWorld.GetPlayerPlatform(idName)
    platform = GameWorld.GetPlayerPlatform(curPlayer)
    platFormIdName = GameWorld.GetPlatformAccID(idName)
    markIdCardData = ReadChConfig.GetEvalChConfig("IDMarkCardData")
    for cardIndex, cardInfo in markIdCardData.items():
@@ -432,7 +433,7 @@
    
    #给予物品
    itemID, itemCnt, isBand = itemInfo
    if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBand, [IPY_GameWorld.rptItem]):
    if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem]):
        #背包空间不足
        PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_676165", [IPY_GameWorld.rptItem])
        return
@@ -451,8 +452,8 @@
    DataRecordPack.DR_UseNewGuyCard(curPlayer, newGuyCardStr, curCardType, itemID, itemCnt)
    #===========================================================================
    # playerName = curPlayer.GetPlayerName()
    # eventParam = "RoleID=%s,LV=%s,LVEx=%s,CreateRoleTime=%s,CardStr=%s,CardType=%s,ItemID=%s,ItemCount=%s" \
    #                % (playerName, curPlayer.GetLV(), curPlayer.GetLVEx(), curPlayer.GetCreateRoleTime(), \
    # eventParam = "RoleID=%s,LV=%s,CreateRoleTime=%s,CardStr=%s,CardType=%s,ItemID=%s,ItemCount=%s" \
    #                % (playerName, curPlayer.GetLV(), curPlayer.GetCreateRoleTime(), \
    #                   newGuyCardStr, curCardType, itemID, itemCnt)
    # EventReport.EventReport(5015, eventParam, curPlayer)
    # 
@@ -505,7 +506,7 @@
        PlayerControl.NotifyCode(curPlayer, "GeRen_admin_327925")
        return
    
    platform = GameWorld.GetPlayerPlatform(curPlayer.GetAccID())
    platform = GameWorld.GetPlayerPlatform(curPlayer)
    MediaCardDict = ReadChConfig.GetEvalChConfig("MediaCard")
    commMediaCardDict, platformMediaCardDict = MediaCardDict
    
@@ -539,13 +540,9 @@
    succGiveItemList = []
    for itemInfo in awardItemList:
        itemID, itemCount, itemBind = itemInfo[:3]
        isAppoint = itemInfo[3] if len(itemInfo) > 3 else 0
        if isAppoint:
            isOK = ItemControler.GivePlayerAppointItem(curPlayer, itemID, itemBind, True, True)
        else:
            isOK = ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, itemBind, [IPY_GameWorld.rptItem],
                                                True, showSysInfo=True)
        appointID = itemInfo[3] if len(itemInfo) > 3 else 0
        setAttrDict = {ShareDefine.Def_CItemKey_AppointID:appointID}
        isOK = ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem], setAttrDict=setAttrDict)
        if isOK:
            succGiveItemList.append(itemInfo)