修改email获取bug

This commit is contained in:
Li Jianxuan 2015-01-30 10:17:32 +00:00
parent 3bad595107
commit c0236cee84
1 changed files with 2 additions and 3 deletions

View File

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