def executeUserCmd(uid, *cmds): """ 执行玩家的命令 """ assert (isinstance(uid, int) and uid > 0) cindex = int(uid) % __user_redis_conns_len if _REDIS_CMD_PPS_: _redisCmdPps('user', cmds) ftred.sendCmd(__user_redis_conns[cindex], *cmds)
def sendDizhuCmd(*cmds): """发送地主的cmd""" if _REDIS_CMD_PPS_: _redisCmdPps('dizhu', cmds) ftred.sendCmd(__dizhu_redis_conn, *cmds)
def sendRankCmd(*cmds): """发送rank的cmd""" if _REDIS_CMD_PPS_: _redisCmdPps('rank', cmds) ftred.sendCmd(__rank_redis_conn, *cmds)
def _sendGeoCmd(*cmds): """发送geo的cmd""" ftred.sendCmd(__geo_redis_conn, *cmds)
def _sendBiCmd(*cmds): """发送BI cmd""" ftred.sendCmd(__bi_redis_conn, *cmds)
def sendDizhuCmd(*cmds): if _REDIS_CMD_PPS_: _redisCmdPps('dizhu', cmds) ftred.sendCmd(__dizhu_redis_conn, *cmds)
def _sendGeoCmd(*cmds): ftred.sendCmd(__geo_redis_conn, *cmds)
def sendRankCmd(*cmds): if _REDIS_CMD_PPS_: _redisCmdPps('rank', cmds) ftred.sendCmd(__rank_redis_conn, *cmds)
def _sendBiCmd(*cmds): ftred.sendCmd(__bi_redis_conn, *cmds)
def sendUserCmd(uid, *cmds): assert (isinstance(uid, int) and uid > 0) cindex = int(uid) % __user_redis_conns_len ftred.sendCmd(__user_redis_conns[cindex], *cmds)