mirror of
https://github.com/jeessy2/ddns-go.git
synced 2025-10-20 15:33:46 +08:00
fix: change RecordId type from int to string in TencentCloudRecord (#1535)
This commit is contained in:
@ -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]
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user