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 "未获得授权信息,请重试链接,如果还无法登录请使用网站账号密码登录"; }