$u = $uin = $this->user;
$r = Utils::jsRandom();
$verifycode = null;
$pt_rsa = null;
$ptredirect = $login_submit_info['target'];
$h = $t = $g = $from_ui = 1;
$p = null;
$regmaster = $login_submit_info['regmaster'];
$u1 = Utils::decodeURIComponent($login_submit_info['s_url']);
$ptlang = $login_submit_info['lang'];
$action = strval(rand(5, 9)) . '-' . strval(strlen($this->user) + strlen($this->password) + rand(1, 5)) . '-' . Utils::loginJsTime();
$js_ver = $login_submit_info['ptui_version'];
$js_type = $js_arr['js_type'];
$login_sig = $login_submit_info['login_sig'];
$appid = $aid = $login_submit_info['appid'];
$pt_qzone_sig = $login_submit_info['pt_qzone_sig'];
$daid = $login_submit_info['daid'];
//log
$this->trace('', 'checkVC');
$check_data = $this->checkVC($regmaster, $appid, $js_ver, $js_type, $login_sig, $u1, $r);
if (count($check_data) !== 3) {
$this->error('err-003');
}
//log
$this->trace($check_data, '$check_data===');
//log
$this->trace(json_encode($check_data), '$check_data===');
$verifycode = $check_data['verifycode'];
if ($check_data['RSAKey']) {
$this->error('err-004');
} else {
$p = Utils::getEncryption($this->password, $check_data['saltUin'], $verifycode);
$pt_rsa = 0;
}
//log
$this->trace('', 'submitLogin');
$this->setCookies(array(
'ptui_loginuin' => array(
'value' => $this->user, 'path' => 'https://www.jb51.net/', 'domain' => '.qq.com', 'expires' => '0'
),
));
$login_result = $this->submitLogin($verifycode, $p,
$pt_rsa, $ptredirect, $u1,
$h, $t, $g, $from_ui,
$ptlang, $action, $js_ver, $js_type,
$login_sig, $aid, $daid, $pt_qzone_sig);