@@ -29,7 +29,7 @@ func (me *WafService) DescribeWafCustomRuleById(ctx context.Context, domain, rul
29
29
request .Limit = common .Uint64Ptr (20 )
30
30
request .Filters = []* waf.FiltersItemNew {
31
31
{
32
- Name : common .StringPtr ("RuleID " ),
32
+ Name : common .StringPtr ("RuleId " ),
33
33
Values : common .StringPtrs ([]string {ruleId }),
34
34
ExactMatch : common .BoolPtr (true ),
35
35
},
@@ -94,7 +94,7 @@ func (me *WafService) DescribeWafCustomWhiteRuleById(ctx context.Context, domain
94
94
request .Limit = common .Uint64Ptr (20 )
95
95
request .Filters = []* waf.FiltersItemNew {
96
96
{
97
- Name : common .StringPtr ("RuleID " ),
97
+ Name : common .StringPtr ("RuleId " ),
98
98
Values : common .StringPtrs ([]string {ruleId }),
99
99
ExactMatch : common .BoolPtr (true ),
100
100
},
@@ -886,7 +886,7 @@ func (me *WafService) DescribeWafAntiFakeById(ctx context.Context, id, domain st
886
886
request .Limit = common .Uint64Ptr (10 )
887
887
request .Filters = []* waf.FiltersItemNew {
888
888
{
889
- Name : common .StringPtr ("RuleID " ),
889
+ Name : common .StringPtr ("RuleId " ),
890
890
Values : common .StringPtrs ([]string {id }),
891
891
ExactMatch : common .BoolPtr (true ),
892
892
},
@@ -948,6 +948,15 @@ func (me *WafService) DescribeWafAntiInfoLeakById(ctx context.Context, ruleId, d
948
948
949
949
request := waf .NewDescribeAntiInfoLeakageRulesRequest ()
950
950
request .Domain = & domain
951
+ request .Limit = common .Uint64Ptr (10 )
952
+ request .Offset = common .Uint64Ptr (0 )
953
+ request .Filters = []* waf.FiltersItemNew {
954
+ {
955
+ Name : common .StringPtr ("RuleId" ),
956
+ Values : common .StringPtrs ([]string {ruleId }),
957
+ ExactMatch : common .BoolPtr (true ),
958
+ },
959
+ }
951
960
952
961
defer func () {
953
962
if errRet != nil {
@@ -969,14 +978,7 @@ func (me *WafService) DescribeWafAntiInfoLeakById(ctx context.Context, ruleId, d
969
978
return
970
979
}
971
980
972
- ruleIdInt , _ := strconv .ParseUint (ruleId , 10 , 64 )
973
- for _ , item := range response .Response .RuleList {
974
- if * item .RuleId == ruleIdInt {
975
- antiInfoLeak = item
976
- break
977
- }
978
- }
979
-
981
+ antiInfoLeak = response .Response .RuleList [0 ]
980
982
return
981
983
}
982
984
@@ -1189,7 +1191,7 @@ func (me *WafService) DescribeWafCcById(ctx context.Context, domain, ruleId stri
1189
1191
request .Domain = & domain
1190
1192
request .Filters = []* waf.FiltersItemNew {
1191
1193
{
1192
- Name : common .StringPtr ("RuleID " ),
1194
+ Name : common .StringPtr ("RuleId " ),
1193
1195
Values : common .StringPtrs ([]string {ruleId }),
1194
1196
ExactMatch : common .BoolPtr (true ),
1195
1197
},
0 commit comments