\Fastknife\ServiceService

Summary

Methods
Properties
Constants
__construct()
get()
validate()
check()
verification()
verificationByEncryptCode()
No public properties found
No constants found
encodePoint()
setOriginData()
$factory
$originData
N/A
setEncryptCache()
No private properties found
N/A

Properties

$factory

$factory : \Fastknife\Domain\Factory

Type

Factory — 工厂

$originData

$originData

Methods

__construct()

__construct(mixed  $config) : mixed

Parameters

mixed $config

Returns

mixed —

get()

get() : mixed

Returns

mixed —

validate()

validate(mixed  $token, mixed  $pointJson, mixed  $callback = null) : mixed

Parameters

mixed $token
mixed $pointJson
mixed $callback

Returns

mixed —

check()

check( $token,  $pointJson) : mixed

一次验证

Parameters

$token
$pointJson

Returns

mixed —

verification()

verification( $token,  $pointJson) : mixed

二次验证

Parameters

$token
$pointJson

Returns

mixed —

verificationByEncryptCode()

verificationByEncryptCode(string  $encryptCode) : mixed

二次验证,必须要先执行一次验证才能调用二次验证 兼容前端 captchaVerification 传值

Parameters

string $encryptCode

Returns

mixed —

encodePoint()

encodePoint( $secretKey,  $point) : array

解码坐标点

Parameters

$secretKey
$point

Returns

array —

setOriginData()

setOriginData(mixed  $token) : mixed

Parameters

mixed $token

Returns

mixed —

setEncryptCache()

setEncryptCache(mixed  $token, mixed  $pointJson) : mixed

Parameters

mixed $token
mixed $pointJson

Returns

mixed —