line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Net::Duowan::DNS::Owner; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
19
|
use 5.006; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
47
|
|
4
|
1
|
|
|
1
|
|
5
|
use warnings; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
32
|
|
5
|
1
|
|
|
1
|
|
5
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
31
|
|
6
|
1
|
|
|
1
|
|
25
|
use Carp qw/croak/; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
51
|
|
7
|
1
|
|
|
1
|
|
5
|
use JSON; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
5
|
|
8
|
1
|
|
|
1
|
|
105
|
use base 'Net::Duowan::DNS::Common'; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
85
|
|
9
|
|
|
|
|
|
|
|
10
|
1
|
|
|
1
|
|
6
|
use vars qw/$VERSION/; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
364
|
|
11
|
|
|
|
|
|
|
$VERSION = '1.2.0'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
sub new { |
14
|
0
|
|
|
0
|
0
|
|
my $class = shift; |
15
|
0
|
|
|
|
|
|
my $psp = shift; |
16
|
0
|
|
|
|
|
|
my $token = shift; |
17
|
0
|
|
|
|
|
|
bless { psp => $psp, token => $token },$class; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub reGenerateToken { |
21
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
22
|
|
|
|
|
|
|
|
23
|
0
|
|
|
|
|
|
my $psp = $self->{psp}; |
24
|
0
|
|
|
|
|
|
my $token = $self->{token}; |
25
|
0
|
|
|
|
|
|
my $act = 'user_edit_token'; |
26
|
0
|
|
|
|
|
|
my %reqs = (a=>$act, psp=>$psp, tkn=>$token); |
27
|
|
|
|
|
|
|
|
28
|
0
|
|
|
|
|
|
return $self->reqTemplate(%reqs); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub fetchOpsLog { |
32
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
33
|
|
|
|
|
|
|
|
34
|
0
|
|
|
|
|
|
my $psp = $self->{psp}; |
35
|
0
|
|
|
|
|
|
my $token = $self->{token}; |
36
|
0
|
|
|
|
|
|
my $act = 'userlog_load_all'; |
37
|
|
|
|
|
|
|
|
38
|
0
|
|
|
|
|
|
my %args = @_; |
39
|
0
|
|
0
|
|
|
|
my $offset = $args{offset} || 0; |
40
|
0
|
|
0
|
|
|
|
my $number = $args{number} || 100; |
41
|
0
|
|
|
|
|
|
my %reqs = (a=>$act, psp=>$psp, tkn=>$token, offset=>$offset, number=>$number); |
42
|
|
|
|
|
|
|
|
43
|
0
|
|
|
|
|
|
return $self->reqTemplate(%reqs); |
44
|
|
|
|
|
|
|
} |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
sub fetchZoneApplyHistory { |
47
|
0
|
|
|
0
|
0
|
|
my $self = shift; |
48
|
|
|
|
|
|
|
|
49
|
0
|
|
|
|
|
|
my $psp = $self->{psp}; |
50
|
0
|
|
|
|
|
|
my $token = $self->{token}; |
51
|
0
|
|
|
|
|
|
my $act = 'applyhist_load_all'; |
52
|
|
|
|
|
|
|
|
53
|
0
|
|
|
|
|
|
my %args = @_; |
54
|
0
|
|
0
|
|
|
|
my $offset = $args{offset} || 0; |
55
|
0
|
|
0
|
|
|
|
my $number = $args{number} || 100; |
56
|
0
|
|
|
|
|
|
my %reqs = (a=>$act, psp=>$psp, tkn=>$token, offset=>$offset, number=>$number); |
57
|
|
|
|
|
|
|
|
58
|
0
|
|
|
|
|
|
return $self->reqTemplate(%reqs); |
59
|
|
|
|
|
|
|
} |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
1; |