herostar = 0; $this->herotype = 0; $this->opents = 0; } } /** * 设计一些卡槽 * @version * 1.0.0 Created at 2017-7-20. by --gwang * @author gwang (mail@wanggangzero.cn) * @copyright ? 2017-7-20, SJZ LoyalSoft Corporation & gwang. All rights reserved. */ class UserLotteryModel extends Object_ext { /** * @var {} 当天抽奖记录(类型=>次数) */ public $todayLotterys; /** * @var {} 总的抽奖记录(类型=>次数) */ public $totalLotterys; /** * @var {} 保底奖励计数器(类型=>次数) */ public $baodiLotterys; /** * @var {} 保底奖励领取记录(类型=>次数) */ public $baodiDrawed; public function __construct($arg = null) { if (func_num_args() == 1 && !is_null($arg)) { parent::__construct($arg); } if (!isset($this->slot0)) { $this->slot0 = new LotterySlotModel(array('id' => 0, 'locked' => false)); } if (!isset($this->slot1)) { $this->slot1 = new LotterySlotModel(array('id' => 1)); } if (!isset($this->slot2)) { $this->slot2 = new LotterySlotModel(array('id' => 2)); } if (!isset($this->slot3)) { $this->slot3 = new LotterySlotModel(array('id' => 3)); } if (!isset($this->todayLotterys)) { $this->todayLotterys = ObjectInit(); } if (!isset($this->totalLotterys)) { $this->totalLotterys = ObjectInit(); } if (!isset($this->baodiLotterys)) { $this->baodiLotterys = ObjectInit(); } if (!isset($this->baodiDrawed)) { $this->baodiDrawed = ObjectInit(); } } }