hxp
2018-11-22 d2bd99f40539e4eb6dc19ce7cc52e3aea56abb4c
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Func_6.py
@@ -398,28 +398,30 @@
# @return 返回值无意义
# @remarks 客户端封包响应 //0C 07 客户端发送仓库密码#tagSendWarehousePsw
def SendWarehousePsw(curPlayer, tick):
    #玩家当前状态不是输入密码状态
    if curPlayer.GetWarehouseState() != IPY_GameWorld.wsEnterPsw:
        return
    #获得客户端封包
    sendPack = IPY_GameWorld.IPY_SendWarehousePsw()
    curPsw = sendPack.GetPsw()
    oldPsw = curPlayer.GetWarehousePsw()
    #这里是调用c++的过滤空格,可以过滤全角空格, python不能
    curPsw = GameWorld.GetGameWorld().GetCharTrim(curPsw)
    #密码不正确
    if curPsw != oldPsw:
        curPlayer.Frm_WarehouseMsg(IPY_GameWorld.whmPswError)
        EventShell.DoExitEvent(curPlayer)
        PlayerControl.NotifyCode(curPlayer, "GeRen_pan_59781")
        return
    #密码正确
    ShowWarehouse(curPlayer)
    #===========================================================================
    # #玩家当前状态不是输入密码状态
    # if curPlayer.GetWarehouseState() != IPY_GameWorld.wsEnterPsw:
    #    return
    #
    # #获得客户端封包
    # sendPack = IPY_GameWorld.IPY_SendWarehousePsw()
    # curPsw = sendPack.GetPsw()
    # oldPsw = curPlayer.GetWarehousePsw()
    #
    # #这里是调用c++的过滤空格,可以过滤全角空格, python不能
    # curPsw = GameWorld.GetGameWorld().GetCharTrim(curPsw)
    #
    # #密码不正确
    # if curPsw != oldPsw:
    #    curPlayer.Frm_WarehouseMsg(IPY_GameWorld.whmPswError)
    #    EventShell.DoExitEvent(curPlayer)
    #
    #    PlayerControl.NotifyCode(curPlayer, "GeRen_pan_59781")
    #    return
    #
    # #密码正确
    # ShowWarehouse(curPlayer)
    #===========================================================================
    return
#---------------------------------------------------------------------