From 6dbcd42b24378c42174d4c566e03f40c1e9d85e9 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Fri, 30 Jan 2015 10:43:12 +0000 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=A7=91=E6=8A=80=E7=BD=91?= =?UTF-8?q?=E9=80=9A=E8=A1=8C=E8=AF=81=E7=99=BB=E5=BD=95=E6=96=AD=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/module/Open/Client.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/application/module/Open/Client.php b/application/module/Open/Client.php index 5a96b182..88625846 100644 --- a/application/module/Open/Client.php +++ b/application/module/Open/Client.php @@ -130,13 +130,15 @@ class Client extends \Zend_Controller_Plugin_Abstract $client->param['callback'] => $client->config['callback'], $client->param['code'] => $code ); - + $curl = new Curl(); $curl->port = 443; $curl->initOptions(array('verifyssl'=>false)); $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);