| 1 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 0 | ▶ | sub Mojo::Webqq::Model::_invite_friend{ | ||||||||
|
Subroutine
_invite_friend: not called CC=3 SCAR=24.8
| |||||||||||
| 3 | 0 | my $self = shift; | |||||||||
| 4 | 0 | my($uid,@qq) = @_; | |||||||||
| 5 | 0 | my $api = "http://qun.qq.com/cgi-bin/qun_mgr/add_group_member"; | |||||||||
| 6 | 0 | my $json = $self->http_post($api,{Referer=>"http://qun.qq.com/member.html",json=>1},form=>{gc=>$uid,ul=>join("|",@qq),bkn=>$self->get_csrf_token}); | |||||||||
| 7 | 0 | ▶ | return if not defined $json; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 8 | 0 | ▶ | return if $json->{ec}!=0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 9 | 0 | return 1; | |||||||||
| 10 | } | ||||||||||
| 11 | 1 | 1; | |||||||||