Weixin/Client/Remote/_logout.pm

filter: Statementstmt 10.0% 1 / 10 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 7.1% 1 / 14 CC 2 SCAR 17.9
CC
2
Cov
8%
_logout
6.0
CRAP 6.0
« Weixin/Plugin/ImageStore.pm ↑ Summary Weixin/Plugin/ShowQRCodeInTerm.pm »
1 0 ▶sub Mojo::Weixin::_logout {
Subroutine _logout: not called CC=2 SCAR=17.9
2 0 my $self = shift;
3 0 $self->info("客户端正在注销...");
4 0 ▶ my $type = shift || 0;
Condition0%0/2
shift() || 0
l!l
00
MC/DC0%0/1
shift() || 0
shift()
Truth table0%0/2
A
A= shift()
Aresult
11
00
5 0 my $api = "https://". $self->domain ."/cgi-bin/mmwebwx-bin/webwxlogout";
6 0 my @query_string = (
7 redirect => 1,
8 type => $type,
9 skey => $self->url_escape($self->skey),
10 );
11 0 my $post = {
12 sid => $self->wxsid,
13 uin => $self->wxuin,
14 };
15 0 $self->http_post($self->gen_url($api,@query_string),{ua_debug_res_body=>0,Referer=>"https://". $self->domain . "/"},form=>$post,);
16 0 $self->clear_cookie();
17 0 return 1;
18 }
19 1 1;
« Weixin/Plugin/ImageStore.pm ↑ Summary Weixin/Plugin/ShowQRCodeInTerm.pm »