房间主持列表接口提交
This commit is contained in:
46
application/adminapi/model/Block.php
Normal file
46
application/adminapi/model/Block.php
Normal file
@@ -0,0 +1,46 @@
|
||||
<?php
|
||||
|
||||
namespace app\adminapi\model;
|
||||
|
||||
use think\Model;
|
||||
use think\Session;
|
||||
use think\Db;
|
||||
class Block extends Model
|
||||
{
|
||||
// 开启自动写入时间戳字段
|
||||
protected $autoWriteTimestamp = 'int';
|
||||
// 定义时间戳字段名
|
||||
protected $createTime = 'createtime';
|
||||
protected $updateTime = 'updatetime';
|
||||
|
||||
protected $name = 'block';
|
||||
|
||||
// 封禁理由 辱骂、低俗、引流、涉政、黑产、其它
|
||||
public static $ban_reason = [
|
||||
'1' => '辱骂',
|
||||
'2' => '低俗',
|
||||
'3' => '引流',
|
||||
'4' => '涉政',
|
||||
'5' => '黑产',
|
||||
'0' => '其它',
|
||||
];
|
||||
|
||||
//封禁时长 1天、3天、7天、一个月、永久
|
||||
public static $ban_time = [
|
||||
'1' => '1天',
|
||||
'3' => '3天',
|
||||
'7' => '7天',
|
||||
'30' => '一个月',
|
||||
'0' => '永久',
|
||||
];
|
||||
|
||||
//获取封禁理由
|
||||
public static function getBanReason(){
|
||||
return self::$ban_reason;
|
||||
}
|
||||
//获取封禁时长
|
||||
public static function getBanTime(){
|
||||
return self::$ban_time;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user