コード例 #1
0
def get_system_mall_discount_list(page, pagesize):
    """
    获取单次充值列表
    """
    return SystemMallDiscountActivity.paging(page,
                                             pagesize,
                                             order="created_time desc")
コード例 #2
0
def add_system_mall_discount(did, name, start_time, end_time, server_ids, username):
    """
    @param eid: 配置id
    @param name: 配置名称
    """
    did = int(did)
    info = SystemMallDiscountActivity()
    info.id = did
    info.name = name
    info.server_ids = server_ids
    if not did:
        info.created_user_name = username
        info.activity_id = str(uuid.uuid4()).replace("-","")
    info.start_time = start_time
    info.end_time = end_time
    
    info.persist()
コード例 #3
0
def get_system_mall_discount(did):
    """
    获取充值道具列表
    """
    return SystemMallDiscountActivity.load(id=did)
コード例 #4
0
def get_system_mall_discount_list(page, pagesize):
    """
    获取单次充值列表
    """
    return SystemMallDiscountActivity.paging(page, pagesize, order="created_time desc")
コード例 #5
0
def add_system_mall_discount(did, name, start_time, end_time, server_ids,
                             username):
    """
    @param eid: 配置id
    @param name: 配置名称
    """
    did = int(did)
    info = SystemMallDiscountActivity()
    info.id = did
    info.name = name
    info.server_ids = server_ids
    if not did:
        info.created_user_name = username
        info.activity_id = str(uuid.uuid4()).replace("-", "")
    info.start_time = start_time
    info.end_time = end_time

    info.persist()
コード例 #6
0
def get_system_mall_discount(did):
    """
    获取充值道具列表
    """
    return SystemMallDiscountActivity.load(id=did)