line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
sub Mojo::Weixin::_get_qrcode_uuid { |
2
|
0
|
|
|
0
|
|
|
my $self = shift; |
3
|
0
|
|
|
|
|
|
my $api = 'https://login.'. $self->domain . '/jslogin'; |
4
|
0
|
|
0
|
|
|
|
my @query_string = ( |
5
|
|
|
|
|
|
|
appid => 'wx782c26e4c19acffb', |
6
|
|
|
|
|
|
|
redirect_uri => 'https://'.$self->domain . '/cgi-bin/mmwebwx-bin/webwxnewloginpage', |
7
|
|
|
|
|
|
|
fun => 'new', |
8
|
|
|
|
|
|
|
lang => $self->lang || 'zh_CN', |
9
|
|
|
|
|
|
|
_ => $self->now(), |
10
|
|
|
|
|
|
|
); |
11
|
0
|
|
|
|
|
|
my $data = $self->http_get($self->gen_url2($api,@query_string)); |
12
|
0
|
0
|
|
|
|
|
return if not defined $data; |
13
|
0
|
|
|
|
|
|
$data=~s/\s+//g; |
14
|
0
|
|
|
|
|
|
my($code,$uuid) = $data=~/window\.QRLogin\.code=(\d+);window\.QRLogin\.uuid="([^"]+)"/g; |
15
|
0
|
0
|
0
|
|
|
|
return ($code==200 and $uuid)?$uuid: undef; |
16
|
|
|
|
|
|
|
} |
17
|
|
|
|
|
|
|
1; |