| 1 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 0 | ▶ | sub Mojo::Webqq::Model::_set_group_member_card{ | ||||||||
|
Subroutine
_set_group_member_card: not called CC=4 SCAR=30.0
| |||||||||||
| 3 | 0 | my $self = shift; | |||||||||
| 4 | 0 | my($uid,$qq,$card) = @_; | |||||||||
| 5 | 0 | my $api = "http://qinfo.clt.qq.com/cgi-bin/qun_info/set_group_card"; | |||||||||
| 6 | 0 | ▶ | my $form = length $card?{gc=>$uid,u=>$qq,name=>$card,bkn=>$self->get_csrf_token}:{gc=>$uid,u=>$qq,bkn=>$self->get_csrf_token}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 7 | 0 | my $json = $self->http_post($api,{Referer=>"http://qinfo.clt.qq.com/member.html",json=>1},form=>$form); | |||||||||
| 8 | 0 | ▶ | return if not defined $json; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 9 | 0 | ▶ | return if $json->{ec}!=0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 10 | 0 | return 1; | |||||||||
| 11 | } | ||||||||||
| 12 | 1 | 1; | |||||||||