public bool processCmd(GameClient client, string[] cmdParams)
        {
            int  nID     = 619;
            int  nRoleID = Global.SafeConvertToInt32(cmdParams[0]);
            bool result;

            if (0 != client.ClientData.WanMoTaProp.nSweepLayer)
            {
                string strCmd = string.Format("{0}:{1}", -1, nRoleID);
                client.sendCmd(nID, strCmd, false);
                result = true;
            }
            else if (-1 == WanMoTaDBCommandManager.UpdateSweepAwardDBCommand(client, -1))
            {
                string strCmd = string.Format("{0}:{1}", -1, nRoleID);
                client.sendCmd(nID, strCmd, false);
                result = true;
            }
            else
            {
                client.ClientData.WanMoTaProp.nSweepLayer = -1;
                this.GiveSweepReward(client);
                string strCmd = string.Format("{0}:{1}", 0, nRoleID);
                client.sendCmd(nID, strCmd, false);
                result = true;
            }
            return(result);
        }
        public bool processCmd(GameClient client, string[] cmdParams)
        {
            int nID     = (int)TCPGameServerCmds.CMD_SPR_GET_SWEEP_REWARD;
            int nRoleID = Global.SafeConvertToInt32(cmdParams[0]);

            string strCmd = "";

            if (0 != client.ClientData.WanMoTaProp.nSweepLayer)
            {
                strCmd = string.Format("{0}:{1}", -1, nRoleID);
                client.sendCmd(nID, strCmd);
                return(true);
            }
            else
            {
                if (-1 == WanMoTaDBCommandManager.UpdateSweepAwardDBCommand(client, -1))
                {
                    strCmd = string.Format("{0}:{1}", -1, nRoleID);
                    client.sendCmd(nID, strCmd);
                    return(true);
                }
                else
                {
                    client.ClientData.WanMoTaProp.nSweepLayer = -1;
                    GiveSweepReward(client);

                    strCmd = string.Format("{0}:{1}", 0, nRoleID);
                    client.sendCmd(nID, strCmd);
                    return(true);
                }
            }
        }