|
|
@ -1025,7 +1025,7 @@ class PhoneController extends \yii\web\Controller |
|
|
|
} |
|
|
|
} |
|
|
|
$tel_x = $tel_y = $sub_infos[mt_rand(0,$count-1)]['phone']; |
|
|
|
$tel_x = $tel_y = $sub_infos[mt_rand(0,$count-1)]['phone']; |
|
|
|
|
|
|
|
|
|
|
|
$parmas = [ |
|
|
|
$params = [ |
|
|
|
'appkey' => '0946239060682011', |
|
|
|
'appkey' => '0946239060682011', |
|
|
|
'ts' => time(), |
|
|
|
'ts' => time(), |
|
|
|
'caller' => $caller, |
|
|
|
'caller' => $caller, |
|
|
@ -1035,9 +1035,9 @@ class PhoneController extends \yii\web\Controller |
|
|
|
'tel_x' =>$tel_x, |
|
|
|
'tel_x' =>$tel_x, |
|
|
|
'tel_y' =>$tel_y |
|
|
|
'tel_y' =>$tel_y |
|
|
|
]; |
|
|
|
]; |
|
|
|
ksort($parmas); |
|
|
|
ksort($params); |
|
|
|
$parmas['sign'] = md5(http_build_query($parmas) . '&secret=3E8QV35pHjjev1713E61xV3tFq1N1E4W'); |
|
|
|
$params['sign'] = md5(http_build_query($params) . '&secret=3E8QV35pHjjev1713E61xV3tFq1N1E4W'); |
|
|
|
$res = MyLib::Post(json_encode($parmas), 'http://api.1ketong.com/ykt-pool/number/ax2/call_out', false, [ |
|
|
|
$res = MyLib::Post(json_encode($params), 'http://api.1ketong.com/ykt-pool/number/ax2/call_out', false, [ |
|
|
|
"Content-Type: application/json;charset=UTF-8", |
|
|
|
"Content-Type: application/json;charset=UTF-8", |
|
|
|
"Accept:application/json", |
|
|
|
"Accept:application/json", |
|
|
|
]); |
|
|
|
]); |
|
|
|