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