修改email获取bug
This commit is contained in:
parent
3bad595107
commit
c0236cee84
|
@ -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 "未获得授权信息,请重试链接,如果还无法登录请使用网站账号密码登录";
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue