添加科技网通行证登录断点

This commit is contained in:
Li Jianxuan 2015-01-30 10:43:12 +00:00
parent b06f113df3
commit 6dbcd42b24
1 changed files with 4 additions and 2 deletions

View File

@ -130,13 +130,15 @@ class Client extends \Zend_Controller_Plugin_Abstract
$client->param['callback'] => $client->config['callback'], $client->param['callback'] => $client->config['callback'],
$client->param['code'] => $code $client->param['code'] => $code
); );
$curl = new Curl(); $curl = new Curl();
$curl->port = 443; $curl->port = 443;
$curl->initOptions(array('verifyssl'=>false)); $curl->initOptions(array('verifyssl'=>false));
$data = $curl->request($main_url,$param,"POST"); $data = $curl->request($main_url,$param,"POST");
//$data = [];
//$data['response'] = '{"expires_in":432000,"refresh_token":"d654e8778c66b4a5487fb5efeb134eb8","userInfo":"{\"passwordType\":\"password_umt\",\"cstnetIdStatus\":\"active\",\"umtId\":\"10247308\",\"truename\":\"鏉庡缓杞‐",\"cstnetId\":\"liujin834@live.com\",\"type\":\"umt\"}","access_token":"dc260d5b825cb3a422b23a5297c7174c"}';
var_dump($data);exit(); var_dump($data['response']);exit();
$cache_data = json_decode($data['response'],true); $cache_data = json_decode($data['response'],true);