class SmsSenderUtil

发送Util类

Methods

int
getRandom()

生成随机数

string
calculateSig($appkey, $random, $curTime, $phoneNumbers)

生成签名

string
calculateSigForTemplAndPhoneNumbers($appkey, $random, $curTime, $phoneNumbers)

生成签名

phoneNumbersToArray($nationCode, $phoneNumbers)

No description

string
calculateSigForTempl($appkey, $random, $curTime, $phoneNumber)

生成签名

string
calculateSigForPuller($appkey, $random, $curTime)

生成签名

string
sendCurlPost(string $url, array $dataObj)

发送请求

Details

at line 17
int getRandom()

生成随机数

Return Value

int 随机数结果

at line 31
string calculateSig($appkey, $random, $curTime, $phoneNumbers)

生成签名

Parameters

$appkey
$random
$curTime
$phoneNumbers

Return Value

string 签名结果

at line 51
string calculateSigForTemplAndPhoneNumbers($appkey, $random, $curTime, $phoneNumbers)

生成签名

Parameters

$appkey
$random
$curTime
$phoneNumbers

Return Value

string 签名结果

at line 63
phoneNumbersToArray($nationCode, $phoneNumbers)

Parameters

$nationCode
$phoneNumbers

at line 86
string calculateSigForTempl($appkey, $random, $curTime, $phoneNumber)

生成签名

Parameters

$appkey
$random
$curTime
$phoneNumber

Return Value

string 签名结果

at line 102
string calculateSigForPuller($appkey, $random, $curTime)

生成签名

Parameters

$appkey
$random
$curTime

Return Value

string 签名结果

at line 115
string sendCurlPost(string $url, array $dataObj)

发送请求

Parameters

string $url 请求地址
array $dataObj 请求内容

Return Value

string 应答json字符串