serve/appcommon.php

Functions

token()

token() : mixed

Returns

mixed —

getToken()

getToken() : mixed

Returns

mixed —

checkLogin()

checkLogin() : mixed

Returns

mixed —

cacheReset()

cacheReset(mixed  $key) : mixed

Parameters

mixed $key

Returns

mixed —

getUserID()

getUserID() : mixed

Returns

mixed —

existFull()

existFull(mixed  $arr, mixed  $keys) : mixed

Parameters

mixed $arr
mixed $keys

Returns

mixed —

verify()

verify(mixed  $data, mixed  $rule, mixed  $info = false) : mixed

Parameters

mixed $data
mixed $rule
mixed $info

Returns

mixed —

zhToPy()

zhToPy(mixed  $text, mixed  $type = 'head') : mixed

Parameters

mixed $text
mixed $type

Returns

mixed —

arraySeek()

arraySeek(mixed  $array, mixed  $source) : mixed

Parameters

mixed $array
mixed $source

Returns

mixed —

search()

search(mixed  $arr) : mixed

Parameters

mixed $arr

Returns

mixed —

isJson()

isJson(mixed  $string) : mixed

Parameters

mixed $string

Returns

mixed —

findSubData()

findSubData(mixed  $arr, mixed  $id) : mixed

Parameters

mixed $arr
mixed $id

Returns

mixed —

htmlpurifier()

htmlpurifier(mixed  $html) : mixed

Parameters

mixed $html

Returns

mixed —

getXlsx()

getXlsx(mixed  $file) : mixed

Parameters

mixed $file

Returns

mixed —

pathChange()

pathChange(mixed  $path = false) : mixed

Parameters

mixed $path

Returns

mixed —

delOverdueFile()

delOverdueFile(mixed  $path, mixed  $time = 30) : mixed

Parameters

mixed $path
mixed $time

Returns

mixed —

delDir()

delDir(mixed  $path) : mixed

Parameters

mixed $path

Returns

mixed —

delCache()

delCache() : mixed

Returns

mixed —

calArrMaxCount()

calArrMaxCount(mixed  $arr, mixed  $max) : mixed

Parameters

mixed $arr
mixed $max

Returns

mixed —

buildExcel()

buildExcel(mixed  $fileName, mixed  $data, mixed  $down = true) : mixed

Parameters

mixed $fileName
mixed $data
mixed $down

Returns

mixed —

buildZip()

buildZip(mixed  $fileName, mixed  $files, mixed  $down = true) : mixed

Parameters

mixed $fileName
mixed $files
mixed $down

Returns

mixed —

curl()

curl(mixed  $url, mixed  $header, mixed  $data, mixed  $method = 'POST') : mixed

Parameters

mixed $url
mixed $header
mixed $data
mixed $method

Returns

mixed —

getDirSize()

getDirSize(mixed  $dir) : mixed

Parameters

mixed $dir

Returns

mixed —

getMysqlSize()

getMysqlSize() : mixed

Returns

mixed —

txm()

txm(mixed  $text, mixed  $type = true) : mixed

Parameters

mixed $text
mixed $type

Returns

mixed —

ewm()

ewm(mixed  $text, mixed  $type = true) : mixed

Parameters

mixed $text
mixed $type

Returns

mixed —

math()

math(mixed  $digit = 6) : mixed

Parameters

mixed $digit

Returns

mixed —

mathArraySum()

mathArraySum(mixed  $arr) : mixed

Parameters

mixed $arr

Returns

mixed —

roundFloat()

roundFloat(mixed  $number, mixed  $digit) : mixed

Parameters

mixed $number
mixed $digit

Returns

mixed —

md5_16()

md5_16(mixed  $str) : mixed

Parameters

mixed $str

Returns

mixed —

PageCalc()

PageCalc(mixed  $page, mixed  $limit, mixed  $type = 'array') : mixed

Parameters

mixed $page
mixed $limit
mixed $type

Returns

mixed —

assoc_unique()

assoc_unique(mixed  $arr, mixed  $key) : mixed

Parameters

mixed $arr
mixed $key

Returns

mixed —

arraySort()

arraySort(mixed  $arr, mixed  $field, mixed  $sort = SORT_ASC) : mixed

Parameters

mixed $arr
mixed $field
mixed $sort

Returns

mixed —

arrayInArray()

arrayInArray(mixed  $arr1, mixed  $arr2) : mixed

Parameters

mixed $arr1
mixed $arr2

Returns

mixed —

arrayColumns()

arrayColumns(mixed  $arr, mixed  $fields) : mixed

Parameters

mixed $arr
mixed $fields

Returns

mixed —

listFile()

listFile(mixed  $path, mixed  $state = true) : mixed

Parameters

mixed $path
mixed $state

Returns

mixed —

is_arrays()

is_arrays(mixed  $arr, mixed  $fields) : mixed

Parameters

mixed $arr
mixed $fields

Returns

mixed —

getOldDay()

getOldDay(mixed  $day = 7) : mixed

Parameters

mixed $day

Returns

mixed —

uuid()

uuid(mixed  $prefix = '') : mixed

Parameters

mixed $prefix

Returns

mixed —

db()

db(mixed  $model) : mixed

Parameters

mixed $model

Returns

mixed —

getSys()

getSys(mixed  $name = []) : mixed

Parameters

mixed $name

Returns

mixed —

pushLog()

pushLog(mixed  $info, mixed  $user = false) : mixed

Parameters

mixed $info
mixed $user

Returns

mixed —

getPeriod()

getPeriod() : mixed

Returns

mixed —

fastSql()

fastSql(mixed  $arr, mixed  $config) : mixed

Parameters

mixed $arr
mixed $config

Returns

mixed —

findTreeArr()

findTreeArr(mixed  $mode, mixed  $data, mixed  $field = false) : mixed

Parameters

mixed $mode
mixed $data
mixed $field

Returns

mixed —

moreTableFind()

moreTableFind(mixed  $arr) : mixed

Parameters

mixed $arr

Returns

mixed —

parmToIndex()

parmToIndex(mixed  $parm) : mixed

Parameters

mixed $parm

Returns

mixed —

unitRadix()

unitRadix(mixed  $unit, mixed  $data) : mixed

Parameters

mixed $unit
mixed $data

Returns

mixed —

unitSwitch()

unitSwitch(mixed  $nums, mixed  $data) : mixed

Parameters

mixed $nums
mixed $data

Returns

mixed —

userInfo()

userInfo(mixed  $id, mixed  $field = false) : mixed

Parameters

mixed $id
mixed $field

Returns

mixed —

getUserAuth()

getUserAuth(mixed  $type) : mixed

Parameters

mixed $type

Returns

mixed —

frameScope()

frameScope(mixed  $sql, mixed  $field = 'frame') : mixed

Parameters

mixed $sql
mixed $field

Returns

mixed —

sqlAuth()

sqlAuth(mixed  $model, mixed  $sql = []) : mixed

Parameters

mixed $model
mixed $sql

Returns

mixed —

getFields()

getFields() : mixed

Returns

mixed —

getUserRoot()

getUserRoot() : mixed

Returns

mixed —

getFrameDeploy()

getFrameDeploy() : mixed

Returns

mixed —

getRootMemu()

getRootMemu() : mixed

Returns

mixed —