From 60178fd03d9714fa98c87035efe5283c4de0cbc0 Mon Sep 17 00:00:00 2001 From: Tsenghan Date: Sat, 4 Feb 2023 21:54:27 +0800 Subject: [PATCH] Define domain request parameter "Line" as default (#10862) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit In Action "DescribeSubDomainRecords", define argument “Line” to the specific "defalut". This is for someone who have two or more same domain names but in different dns request source(ISP), but return more than 1 record will goto print "地址需要修改". For document of aliyun API, set a Line parament can solve this issue because most of users just have one ISP for each domain and its value was set as "default". --- package/lean/ddns-scripts_aliyun/update_aliyun_com.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/lean/ddns-scripts_aliyun/update_aliyun_com.sh b/package/lean/ddns-scripts_aliyun/update_aliyun_com.sh index 8bfeeb576..0d109b8e3 100755 --- a/package/lean/ddns-scripts_aliyun/update_aliyun_com.sh +++ b/package/lean/ddns-scripts_aliyun/update_aliyun_com.sh @@ -199,7 +199,7 @@ enable_domain() { # 获取子域名解析记录列表 describe_domain() { local count value; local ret=0 - aliyun_transfer "Action=DescribeSubDomainRecords" "SubDomain=${__HOST}.${__DOMAIN}" "DomainName=${__DOMAIN}" || write_log 14 "服务器通信失败" + aliyun_transfer "Action=DescribeSubDomainRecords" "SubDomain=${__HOST}.${__DOMAIN}" "DomainName=${__DOMAIN}" "Line=default" || write_log 14 "服务器通信失败" write_log 7 "获取到解析记录: $(cat "$DATFILE" 2> /dev/null)" json_cleanup; json_load "$(cat "$DATFILE" 2> /dev/null)" >/dev/null 2>&1 json_get_var count "TotalCount"