\serviceUtilService

Summary

Methods
Properties
Constants
postMore()
getMore()
encrypt()
pathToUrl()
urlToPath()
timeTran()
sortListTier()
rmPublicResource()
isWechatBrowser()
anonymity()
setCard()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

postMore()

postMore(  $params, \think\Request  $request = null,   $suffix = false) 

Parameters

$params
\think\Request $request
$suffix

getMore()

getMore(  $params, \think\Request  $request = null,   $suffix = false) 

Parameters

$params
\think\Request $request
$suffix

encrypt()

encrypt(  $string,   $operation = false,   $key = '',   $expiry) 

Parameters

$string
$operation
$key
$expiry

pathToUrl()

pathToUrl(  $path) : string

路径转url路径

Parameters

$path

Returns

string

urlToPath()

urlToPath(  $url) : string

url转换路径

Parameters

$url

Returns

string

timeTran()

timeTran(  $time) 

Parameters

$time

sortListTier()

sortListTier(  $data, integer  $pid, string  $field = 'pid', string  $pk = 'id', string  $html = '|-----', integer  $level = 1, boolean  $clear = true) : array

分级排序

Parameters

$data
integer $pid
string $field
string $pk
string $html
integer $level
boolean $clear

Returns

array

rmPublicResource()

rmPublicResource(  $url,   $isPath = false) : \StdClass

删除公告资源

Parameters

$url
$isPath

Returns

\StdClass

isWechatBrowser()

isWechatBrowser() : boolean

是否为微信内部浏览器

Returns

boolean

anonymity()

anonymity(  $name) : string

匿名处理

Parameters

$name

Returns

string

setCard()

setCard(  $card) : boolean

身份证验证

Parameters

$card

Returns

boolean