<?php

/**
 * 盲盒商城
 */

namespace Game\Constant\ConstTemplate;

use Game\Constant\TemplateDefineBase;

class TemplateShopBlindBox extends TemplateDefineBase
{
    public const Id = "Id";

    public const ItemBox1 = "ItemBox1";   //奖励组
    public const PR1 = "PR1";
    public const Minimum1 = "Minimum1"; //保底次数
    public const Weight = "Weight";   //加权
    public const ItemBox2 = "ItemBox2";   //奖励组
    public const PR2 = "PR2";
    public const Minimum2 = "Minimum2"; //保底次数
    public const ItemBox3 = "ItemBox3";   //奖励组
    public const PR3 = "PR3";
    public const Minimum3 = "Minimum3"; //保底次数
    public const ItemBox4 = "ItemBox4";   //奖励组
    public const PR4 = "PR4";
    public const Minimum4 = "Minimum4"; //保底次数
    public const ItemBox5 = "ItemBox5";   //奖励组
    public const PR5 = "PR5";
    public const Minimum5 = "Minimum5"; //保底次数
    public const ItemBox6 = "ItemBox6";   //奖励组
    public const PR6 = "PR6";
    public const Minimum6 = "Minimum6"; //保底次数
    public const ItemBox7 = "ItemBox7";   //奖励组
    public const PR7 = "PR7";
    public const Minimum7 = "Minimum7"; //保底次数
    public const ItemBox8 = "ItemBox8";   //奖励组
    public const PR8 = "PR8";
    public const Minimum8 = "Minimum8"; //保底次数
    public const ItemBox9 = "ItemBox9";   //奖励组
    public const PR9 = "PR9";
    public const Minimum9 = "Minimum9"; //保底次数
    public const ItemBox10 = "ItemBox10";   //奖励组
    public const PR10 = "PR10";
    public const Minimum10 = "Minimum10"; //保底次数
    public const MoneyType = "ConvertedType";   //货币类型
    public const TicketType = "CurrencyType";   //奖券类型
    public const Price = "Price";   //价格->合并为一个
    public const Num = "Num";
    public const SDate = "StartDate";
    public const STime = "Starttime";
    public const EDate = "EndDate";
    public const ETime = "EndTime";

    public const StartTime = "StartTime";   //上架时间-时间戳
    public const EndTime = "EndTime";       //下架时间-时间戳

    public function getTermList(): array
    {
        return array(
            self::Id,
            self::ItemBox1,
            self::PR1,
            self::Minimum1,
            self::Weight,
            self::ItemBox2,
            self::PR2,
            self::Minimum2,
            self::ItemBox3,
            self::PR3,
            self::Minimum3,
            self::ItemBox4,
            self::PR4,
            self::Minimum4,
            self::ItemBox5,
            self::PR5,
            self::Minimum5,
            self::ItemBox6,
            self::PR6,
            self::Minimum6,
            self::ItemBox7,
            self::PR7,
            self::Minimum7,
            self::ItemBox8,
            self::PR8,
            self::Minimum8,
            self::ItemBox9,
            self::PR9,
            self::Minimum9,
            self::ItemBox10,
            self::PR10,
            self::Minimum10,
            self::MoneyType,
            self::TicketType,
            self::Price,
            self::Num,
            self::SDate,
            self::STime,
            self::EDate,
            self::ETime,
        );
    }

    //Id范围--第一组特殊处理
    public const START_NUM = 2;
    public const END_NUM = 10;
    //key
    public const ITEM_KEY = "ItemBox";
    public const PR_KEY = "PR";
    public const MINIMUM_KEY = "Minimum";
}
