From c0236cee84f1ee89988c50046671e39eb2020d49 Mon Sep 17 00:00:00 2001 From: Li Jianxuan Date: Fri, 30 Jan 2015 10:17:32 +0000 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9email=E8=8E=B7=E5=8F=96bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/module/Open/Client.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/application/module/Open/Client.php b/application/module/Open/Client.php index 2a9c299a..524b542c 100644 --- a/application/module/Open/Client.php +++ b/application/module/Open/Client.php @@ -135,11 +135,10 @@ class Client extends \Zend_Controller_Plugin_Abstract $curl->port = 443; $curl->initOptions(array('verifyssl'=>false)); $data = $curl->request($main_url,$param,"POST"); - var_dump($data['response']); - exit(); + $cache_data = json_decode($data['response'],true); - if(!is_array($cache_data) || !isset($cache_data['expires_in']) || !isset($cache_data['userInfo']['securityEmail'])) + if(!is_array($cache_data) || !isset($cache_data['expires_in']) || !isset($cache_data['userInfo']['cstnetId'])) { return "未获得授权信息,请重试链接,如果还无法登录请使用网站账号密码登录"; }