Properties

$appkey

$appkey : 

Type

$secretKey

$secretKey : 

Type

$gatewayUrl

$gatewayUrl : 

Type

$format

$format : 

Type

$connectTimeout

$connectTimeout : 

Type

$readTimeout

$readTimeout : 

Type

$checkRequest

$checkRequest : 

是否打开入参check*

Type

$signMethod

$signMethod : 

Type

$apiVersion

$apiVersion : 

Type

$sdkVersion

$sdkVersion : 

Type

$dnsconfig

$dnsconfig : 

Type

$syncDate

$syncDate : 

Type

$applicationVar

$applicationVar : 

Type

$cfgDuration

$cfgDuration : 

Type

Methods

getAppkey()

getAppkey() 

__construct()

__construct(  $appkey = "",   $secretKey = "") 

Parameters

$appkey
$secretKey

curl()

curl(  $url,   $postFields = null) 

Parameters

$url
$postFields

curl_with_memory_file()

curl_with_memory_file(  $url,   $postFields = null,   $fileFields = null) 

Parameters

$url
$postFields
$fileFields

execute()

execute(  $request = null,   $session = null,   $bestUrl = null) 

Parameters

$request
$session
$bestUrl

exec()

exec(  $paramsArray) 

Parameters

$paramsArray

__destruct()

__destruct() 

generateSign()

generateSign(  $params) 

Parameters

$params

logCommunicationError()

logCommunicationError(  $apiName,   $requestUrl,   $errorCode,   $responseTxt) 

Parameters

$apiName
$requestUrl
$errorCode
$responseTxt

getClusterTag()

getClusterTag() 

getDnsConfigSyncDuration()

getDnsConfigSyncDuration() 

getBestVipUrl()

getBestVipUrl(  $url,   $apiname = null,   $session = null) 

Parameters

$url
$apiname
$session

getVipByEnv()

getVipByEnv(  $comUrl,   $currentEnv) 

Parameters

$comUrl
$currentEnv

getEnvByApiName()

getEnvByApiName(  $apiName,   $session = "") 

Parameters

$apiName
$session

getUserFlag()

getUserFlag(  $session) 

Parameters

$session

getEnvBySessionFlag()

getEnvBySessionFlag(  $targetConfig,   $flag) 

Parameters

$targetConfig
$flag

getRandomWeightElement()

getRandomWeightElement(  $elements) 

Parameters

$elements

getElementWeight()

getElementWeight(  $ele) 

Parameters

$ele

getElementValue()

getElementValue(  $ele) 

Parameters

$ele

getDeafultEnv()

getDeafultEnv() 

startsWith()

startsWith(  $haystack,   $needle) 

Parameters

$haystack
$needle

object_to_array()

object_to_array(  $obj) 

Parameters

$obj

randomFloat()

randomFloat(  $min,   $max = 1) 

Parameters

$min
$max