fix: change RecordId type from int to string in TencentCloudRecord (#1535)

This commit is contained in:
jeessy2
2025-08-21 09:51:01 +08:00
committed by GitHub
parent 156be63ad4
commit 188ed93235

View File

@ -35,7 +35,7 @@ type TencentCloudRecord struct {
// DescribeRecordList 不需要 Value
Value string `json:"Value,omitempty"`
// CreateRecord/DescribeRecordList 不需要 RecordId
RecordId int `json:"RecordId,omitempty"`
RecordId string `json:"RecordId,omitempty"`
// DescribeRecordList 不需要 TTL
TTL int `json:"TTL,omitempty"`
}
@ -109,7 +109,7 @@ func (tc *TencentCloud) addUpdateDomainRecords(recordType string) {
params := domain.GetCustomParams()
if params.Has("RecordId") {
for i := 0; i < result.Response.RecordCountInfo.TotalCount; i++ {
if strconv.Itoa(result.Response.RecordList[i].RecordId) == params.Get("RecordId") {
if result.Response.RecordList[i].RecordId == params.Get("RecordId") {
recordSelected = result.Response.RecordList[i]
}
}