class DefaultAppSign

默认的应用验签

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
bool
check(array $input)

No description

array
sign(array $params, int $appid, string $secret)

计算验签

string
calcSign(array $params, string $secret)

对数据进行签名, 并返回 md5 的数据

array
except($params)

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 23
bool check(array $input)

No description

Parameters

array $input

Return Value

bool

at line 80
array sign(array $params, int $appid, string $secret)

计算验签

Parameters

array $params 参数
int $appid

应用 ID

string $secret 密钥

Return Value

array

at line 98
protected string calcSign(array $params, string $secret)

对数据进行签名, 并返回 md5 的数据

Parameters

array $params 参数
string $secret 密钥

Return Value

string

at line 110
protected array except($params)

No description

Parameters

$params

Return Value

array