| 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
MC/DC0%0/1
shift() || 0
shift()
Truth table0%0/2
A
A= shift()
| |||||||||||||
| 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; | |||||||||||