$url .= '?' . http_build_query(array(
'u' => $this->user,
'verifycode' => $verifycode));
$url .= '&p=' . $p; ###
$url .= '&' . http_build_query(array(
'pt_rsa' => $pt_rsa,
'ptredirect' => $ptredirect,
'u1' => $u1,
'h' => $h,
't' => $t,
'g' => $g,
'from_ui' => $from_ui,
'ptlang' => $ptlang,
'action' => $action,
'js_ver' => $js_ver,
'js_type' => $js_type,
));
$url .= '&login_sig=' . $login_sig; ###
$url .= '&' . http_build_query(array(
'aid' => $aid,
'daid' => $daid,
'pt_qzone_sig' => $pt_qzone_sig));
$options = array(
CURLOPT_TIMEOUT => $this->request_timeout,
CURLOPT_HEADER => 1,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => $url,
CURLOPT_HTTPHEADER => array(
'Referer:?proxy_url=http%3A//qzs.qq.com/qzone/v6/portal/proxy.html&daid=5&pt_qzone_sig=1&hide_title_bar=1&low_login=0&qlogin_auto_login=1&no_verifyimg=1&link_target=blank&appid=549000912&style=22&target=self&s_url=http%3A//qzs.qq.com/qzone/v5/loginsucc.html?para=izone&pt_qr_app=%E6%89%8B%E6%9C%BAQQ%E7%A9%BA%E9%97%B4&pt_qr_link=http%3A//z.qzone.com/download.html&self_regurl=http%3A//qzs.qq.com/qzone/v6/reg/index.html&pt_qr_help_link=http%3A//z.qzone.com/download.html',
'User-Agent:' . $this->user_agent,
'Host:ptlogin2.qq.com',
'Accept-Language:zh-cn,zh;q=0.8,en-us;q=0.5,en;q=0.3',
'Connection:keep-alive',
)
);
return ResultExtract::checkLoginSuccess($this->requestExec($options));
}
public function loginSuccessRedirect($url)
{
$options = array(
CURLOPT_TIMEOUT => $this->request_timeout,
CURLOPT_HEADER => 1,
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => $url,
CURLOPT_HTTPHEADER => array(
'Referer:?proxy_url=http%3A//qzs.qq.com/qzone/v6/portal/proxy.html&daid=5&pt_qzone_sig=1&hide_title_bar=1&low_login=0&qlogin_auto_login=1&no_verifyimg=1&link_target=blank&appid=549000912&style=22&target=self&s_url=http%3A//qzs.qq.com/qzone/v5/loginsucc.html?para=izone&pt_qr_app=%E6%89%8B%E6%9C%BAQQ%E7%A9%BA%E9%97%B4&pt_qr_link=http%3A//z.qzone.com/download.html&self_regurl=http%3A//qzs.qq.com/qzone/v6/reg/index.html&pt_qr_help_link=http%3A//z.qzone.com/download.html',
'User-Agent:' . $this->user_agent,
'Host:qzs.qq.com',
'Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Connection:keep-alive',
'DNT:1',
)
);
$this->requestExec($options);
}