class Ban

用户禁用

Traits

AppTrait

Properties

protected Resp $error error from  AppTrait
protected Resp $success success from  AppTrait

Methods

getError()

获取错误

from  AppTrait
bool
setError(string|MessageBag $error)

设置错误

from  AppTrait
getSuccess()

Get success messages;

from  AppTrait
bool
setSuccess(Resp|string $success)

No description

from  AppTrait
__construct()

No description

bool
establish(array $input)

封禁

bool
delete(int $id)

删除

bool
checkIn(string $account_type, string $type, string $value)

检测给定内容是否在缓存中

bool
type($id, $type)

禁用 Ban

void
initCache()

初始化所有

parseIpRange($value)

No description

Details

in AppTrait at line 32
Resp getError()

获取错误

Return Value

Resp

in AppTrait at line 45
bool setError(string|MessageBag $error)

设置错误

Parameters

string|MessageBag $error error

Return Value

bool

in AppTrait at line 82
Resp getSuccess()

Get success messages;

Return Value

Resp

in AppTrait at line 100
bool setSuccess(Resp|string $success)

No description

Parameters

Resp|string $success 设置的成功信息

Return Value

bool

at line 31
__construct()

No description

at line 41
bool establish(array $input)

封禁

Parameters

array $input

Return Value

bool

at line 108
bool delete(int $id)

删除

Parameters

int $id id

Return Value

bool

at line 141
bool checkIn(string $account_type, string $type, string $value)

检测给定内容是否在缓存中

Parameters

string $account_type 账号类型
string $type 需要检测的类型
string $value 需要检测的值

Return Value

bool

at line 184
bool type($id, $type)

禁用 Ban

Parameters

$id
$type

Return Value

bool

at line 212
void initCache()

初始化所有

Return Value

void

at line 219
parseIpRange($value)

No description

Parameters

$value