def add_system_pay_reward(rid, name, reward_type, server_ids, username):
    """
    @param eid: 配置id
    @param name: 配置名称
    """
    rid = int(rid)
    system_pay_reward = SystemPayReward()
    system_pay_reward.id = rid
    system_pay_reward.name = name
    system_pay_reward.server_ids = server_ids
    if not rid:
        system_pay_reward.created_user_name = username
    system_pay_reward.reward_type = reward_type
    system_pay_reward.persist()
Example #2
0
def add_system_pay_reward(rid, name, reward_type, server_ids, username):
    """
    @param eid: 配置id
    @param name: 配置名称
    """
    rid = int(rid)
    system_pay_reward = SystemPayReward()
    system_pay_reward.id = rid
    system_pay_reward.name = name
    system_pay_reward.server_ids = server_ids
    if not rid:
        system_pay_reward.created_user_name = username
    system_pay_reward.reward_type = reward_type
    system_pay_reward.persist()