status == 1 ? "开启" : "关闭"; } public function logs() { return $this->hasMany(LotteryLog::class); } public function gifts() { return $this->hasMany(LotteryGift::class)->orderBy('level', 'asc'); } }