line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
sub Mojo::Webqq::Client::_cookie_proxy { |
2
|
0
|
|
|
0
|
|
|
my $self = shift; |
3
|
0
|
0
|
|
|
|
|
return 1 if $self->domain eq 'web2.qq.com'; |
4
|
0
|
|
|
|
|
|
my $p_skey = $self->search_cookie("p_skey"); |
5
|
0
|
|
|
|
|
|
my $p_uin = $self->search_cookie("p_uin"); |
6
|
0
|
0
|
0
|
|
|
|
$self->ua->cookie_jar->add( |
7
|
|
|
|
|
|
|
Mojo::Cookie::Response->new( |
8
|
|
|
|
|
|
|
name => "p_skey", |
9
|
|
|
|
|
|
|
value => $p_skey, |
10
|
|
|
|
|
|
|
domain => $self->domain, |
11
|
|
|
|
|
|
|
path => "/", |
12
|
|
|
|
|
|
|
), |
13
|
|
|
|
|
|
|
Mojo::Cookie::Response->new( |
14
|
|
|
|
|
|
|
name => "p_uin", |
15
|
|
|
|
|
|
|
value => $p_uin, |
16
|
|
|
|
|
|
|
domain => $self->domain, |
17
|
|
|
|
|
|
|
path => "/", |
18
|
|
|
|
|
|
|
), |
19
|
|
|
|
|
|
|
) if defined $p_skey and defined $p_uin; |
20
|
0
|
|
|
|
|
|
$self->save_cookie(); |
21
|
0
|
|
|
|
|
|
return 1; |
22
|
|
|
|
|
|
|
}; |
23
|
|
|
|
|
|
|
1; |