\DtApp\ThinkLibrary\helperRequests

请求管理类

Summary

Methods
Properties
Constants
isEmpty()
isEmptyRet()
isGet()
isPost()
isPut()
isDelete()
isAjax()
isMobile()
isWeiXin()
isWeiXinMp()
isAliPay()
isQQ()
isQQBrowser()
getDeviceType()
getMobileType()
getWebsiteAddress()
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

isEmpty()

isEmpty(array  $data, array  $arr) : array

判断输入的参数

Parameters

array $data
array $arr

Returns

array

isEmptyRet()

isEmptyRet(array  $data, array  $arr) : array

判断输入的参数为空就返回Json错误

Parameters

array $data
array $arr

Returns

array

isGet()

isGet() : boolean

判断是否为GET方式

Returns

boolean

isPost()

isPost() : boolean

判断是否为POST方式

Returns

boolean

isPut()

isPut() : boolean

判断是否为PUT方式

Returns

boolean

isDelete()

isDelete() : boolean

判断是否为DELETE方式

Returns

boolean

isAjax()

isAjax() : boolean

判断是否为Ajax方式

Returns

boolean

isMobile()

isMobile() : boolean

判断是否为移动端访问

Returns

boolean

isWeiXin()

isWeiXin() : boolean

判断是否微信内置浏览器访问

Returns

boolean

isWeiXinMp()

isWeiXinMp() : boolean

判断是否为微信小程序访问

Returns

boolean

isAliPay()

isAliPay() : boolean

判断是否支付宝内置浏览器访问

Returns

boolean

isQQ()

isQQ() : boolean

判断是否QQ内置浏览器访问

Returns

boolean

isQQBrowser()

isQQBrowser() : boolean

判断是否QQ浏览器访问

Returns

boolean

getDeviceType()

getDeviceType() : string

获取客户端类型

Returns

string

getMobileType()

getMobileType() : string

获取手机设备类型

Returns

string

getWebsiteAddress()

getWebsiteAddress() : string

获取域名地址

Returns

string