Merge branch 'master' of https://gitea.wq520.cloud:4435/jiacai_wang/alidns
This commit is contained in:
commit
d3ac143902
@ -5,12 +5,12 @@ workspace:
|
|||||||
pipeline:
|
pipeline:
|
||||||
build:
|
build:
|
||||||
image: golang
|
image: golang
|
||||||
|
|
||||||
# pull: true
|
# pull: true
|
||||||
commands:
|
commands:
|
||||||
- pwd
|
- pwd
|
||||||
- ls
|
- ls
|
||||||
- go env -w GOPROXY=https://goproxy.io,direct
|
- go env -w GOPROXY=https://goproxy.io,direct
|
||||||
- go get -u github.com/aliyun/alibaba-cloud-sdk-go/sdk
|
|
||||||
- go get -u github.com/aliyun/alibaba-cloud-sdk-go/services/alidns
|
- go get -u github.com/aliyun/alibaba-cloud-sdk-go/services/alidns
|
||||||
- go mod init alidns
|
- go mod init alidns
|
||||||
- go mod tidy
|
- go mod tidy
|
||||||
|
@ -87,6 +87,7 @@ func main() {
|
|||||||
|
|
||||||
// find subdomain
|
// find subdomain
|
||||||
for _, record := range config.Records {
|
for _, record := range config.Records {
|
||||||
|
found = false
|
||||||
for _, record_ := range domainRecords.DomainRecords.Record {
|
for _, record_ := range domainRecords.DomainRecords.Record {
|
||||||
|
|
||||||
if record.Type == record_.Type &&
|
if record.Type == record_.Type &&
|
||||||
|
Reference in New Issue
Block a user