2022-02-28 10:04:28 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace app\model;
|
|
|
|
|
|
|
|
//抽奖
|
|
|
|
class Activity extends Base
|
|
|
|
{
|
2022-03-01 08:19:41 +00:00
|
|
|
const lottery_method_time = "time";//按时间开奖
|
|
|
|
const lottery_method_people_number = "people_number";//按人数开奖
|
|
|
|
const lottery_method_immediate = "immediate";//即抽即开
|
2022-02-28 10:04:28 +00:00
|
|
|
|
2022-03-01 08:19:41 +00:00
|
|
|
const type_prize = "prize";//通用抽奖
|
|
|
|
const type_redpack = "redpack";//红包抽奖
|
|
|
|
|
|
|
|
|
|
|
|
const redpack_type_random = "random";//拼手气红包
|
|
|
|
const redpack_type_uniformity = "uniformity";//均匀分配红包
|
|
|
|
|
|
|
|
public static function AllLotteryMethod()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
self::lottery_method_time =>"按时间开奖",
|
|
|
|
self::lottery_method_people_number =>"按人数开奖",
|
|
|
|
self::lottery_method_immediate =>"即抽即开",
|
|
|
|
];
|
|
|
|
}
|
|
|
|
public static function AllType()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
self::type_prize =>"通用抽奖",
|
|
|
|
self::type_redpack =>"红包抽奖",
|
|
|
|
];
|
|
|
|
}
|
|
|
|
public static function AllRedackType()
|
|
|
|
{
|
|
|
|
return [
|
|
|
|
self::redpack_type_random =>"拼手气红包",
|
|
|
|
self::redpack_type_uniformity =>"均匀分配红包",
|
|
|
|
];
|
|
|
|
}
|
2022-02-28 10:04:28 +00:00
|
|
|
}
|