Weixin/Model/Remote/_webwxoplog_stick.pm

filter: Statementstmt 9.0% 1 / 11 Branchbran 0.0% 0 / 4 Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 1 Podpod n/a totaltotal 5.2% 1 / 19 CC 4 SCAR 30.0
CC
4
Cov
6%
_webwxoplog_stick
20.0
CRAP 20.0
« Weixin/Model/Remote/_webwxoplog_markname.pm ↑ Summary Weixin/Client/Remote/_is_need_login.pm »
1 0 ▶sub Mojo::Weixin::_webwxoplog_stick {
Subroutine _webwxoplog_stick: not called CC=4 SCAR=30.0
2 0 my $self = shift;
3 0 my $id = shift;
4 0 ▶ my $op = shift // 1;
Condition0%0/2
shift() // 1
l!l
00
MC/DC0%0/1
shift() // 1
shift()
Truth table0%0/2
A
A= shift()
Aresult
11
00
5 0 my $api = 'https://' .$self->domain . '/cgi-bin/mmwebwx-bin/webwxoplog';
6 0 my @query_string = (
7 pass_ticket => $self->url_escape($self->pass_ticket),
8 );
9 #push @query_string,(pass_ticket => url_escape($self->pass_ticket)) if $self->pass_ticket;
10 0 my $post = {
11 BaseRequest => {
12 Uin => $self->wxuin,
13 Sid => $self->wxsid,
14 Skey => $self->skey,
15 DeviceID => $self->deviceid,
16 },
17 CmdId => 3,
18 OP => $op,
19 UserName => $id,
20 };
21  
22 0 my $json = $self->http_post($self->gen_url($api,@query_string),{json=>1,Referer=>'https://' . $self->domain . '/'},json=>$post);
23 0 ▶ return if not defined $json;
Branch: 1 branch
BranchTrueFalseTotal
unless defined $json 0 0 0
24 0 ▶ return if $json->{BaseResponse}{Ret}!=0;
Branch: 1 branch
BranchTrueFalseTotal
if $json->{"BaseResponse"}{"Ret"} != 0 0 0 0
25 0 return 1;
26 }
27 1 1;
28  
« Weixin/Model/Remote/_webwxoplog_markname.pm ↑ Summary Weixin/Client/Remote/_is_need_login.pm »