def get_system_tool_exchange_list(page, pagesize, username=None):
    """
    获取道具兑换列表
    """
    where = "1=1"
    if username:
        where = " created_user_id = '%s'" % username
    return SystemToolExchange.paging(page, pagesize, condition=where, order="created_time desc")
Exemple #2
0
def get_system_tool_exchange_list(page, pagesize, username=None):
    """
    获取道具兑换列表
    """
    where = "1=1"
    if username:
        where = " created_user_id = '%s'" % username
    return SystemToolExchange.paging(page,
                                     pagesize,
                                     condition=where,
                                     order="created_time desc")
Exemple #3
0
def add_system_tool_exchange(eid, name, server_ids, username):
    """
    @param eid: 配置id
    @param name: 配置名称
    """
    eid = int(eid)
    systemToolExchange = SystemToolExchange()
    systemToolExchange.id = eid
    systemToolExchange.name = name
    systemToolExchange.server_ids = server_ids
    if not eid:
        systemToolExchange.created_user_id = username
    systemToolExchange.persist()
def add_system_tool_exchange(eid, name, server_ids, username):
    """
    @param eid: 配置id
    @param name: 配置名称
    """
    eid = int(eid)
    systemToolExchange = SystemToolExchange()
    systemToolExchange.id = eid
    systemToolExchange.name = name
    systemToolExchange.server_ids = server_ids
    if not eid:
        systemToolExchange.created_user_id = username
    systemToolExchange.persist()
def get_system_tool_exchange(eid):
    """
    获取道具兑换
    """
    return SystemToolExchange.load(id=eid)
Exemple #6
0
def get_system_tool_exchange(eid):
    """
    获取道具兑换
    """
    return SystemToolExchange.load(id=eid)