Skip to content

Commit

Permalink
update query rule
Browse files Browse the repository at this point in the history
  • Loading branch information
bruceybian committed Feb 4, 2024
1 parent 83576cc commit 8a36d04
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tencentcloud/common/cloud_common.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,14 @@ func GetResourceCreatorAccountInfo(client *connectivity.TencentCloudClient, reso
request.TopicId = helper.String(DefaultTopicId)

for _, r := range resources {
query := resourceCreateAction + QueryGrammarRule + r.Id
query := resourceCreateAction + QueryGrammarRule
if r.Id != "" {
query = query + r.Id
} else if r.Name != "" {
query = query + r.Name
} else {
continue
}
request.Query = helper.String(query)

response, err := client.UseClsClient().SearchLog(request)
Expand Down

0 comments on commit 8a36d04

Please sign in to comment.