Exemplo n.º 1
0
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)
Exemplo n.º 2
0
def sendDizhuCmd(*cmds):
    """发送地主的cmd"""
    if _REDIS_CMD_PPS_:
        _redisCmdPps('dizhu', cmds)
    ftred.sendCmd(__dizhu_redis_conn, *cmds)
Exemplo n.º 3
0
def sendRankCmd(*cmds):
    """发送rank的cmd"""
    if _REDIS_CMD_PPS_:
        _redisCmdPps('rank', cmds)
    ftred.sendCmd(__rank_redis_conn, *cmds)
Exemplo n.º 4
0
def _sendGeoCmd(*cmds):
    """发送geo的cmd"""
    ftred.sendCmd(__geo_redis_conn, *cmds)
Exemplo n.º 5
0
def _sendBiCmd(*cmds):
    """发送BI cmd"""
    ftred.sendCmd(__bi_redis_conn, *cmds)
Exemplo n.º 6
0
def sendDizhuCmd(*cmds):
    if _REDIS_CMD_PPS_:
        _redisCmdPps('dizhu', cmds)
    ftred.sendCmd(__dizhu_redis_conn, *cmds)
Exemplo n.º 7
0
def _sendGeoCmd(*cmds):
    ftred.sendCmd(__geo_redis_conn, *cmds)
Exemplo n.º 8
0
def sendRankCmd(*cmds):
    if _REDIS_CMD_PPS_:
        _redisCmdPps('rank', cmds)
    ftred.sendCmd(__rank_redis_conn, *cmds)
Exemplo n.º 9
0
def _sendBiCmd(*cmds):
    ftred.sendCmd(__bi_redis_conn, *cmds)
Exemplo n.º 10
0
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)
Exemplo n.º 11
0
def _sendGeoCmd(*cmds):
    ftred.sendCmd(__geo_redis_conn, *cmds)
Exemplo n.º 12
0
def _sendBiCmd(*cmds):
    ftred.sendCmd(__bi_redis_conn, *cmds)
Exemplo n.º 13
0
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)