From 5712546380985af0402c711603d8b071243cabb0 Mon Sep 17 00:00:00 2001 From: Darry Shen Date: Mon, 11 Sep 2023 10:57:43 +0800 Subject: [PATCH] Update dns_la.sh Modify for api update --- dnsapi/dns_la.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dnsapi/dns_la.sh b/dnsapi/dns_la.sh index 674df410..49b35246 100644 --- a/dnsapi/dns_la.sh +++ b/dnsapi/dns_la.sh @@ -118,7 +118,7 @@ _get_root() { fi if _contains "$response" '"domainid":'; then - _domain_id=$(printf "%s" "$response" | grep '"domainid":' | cut -d : -f 2 | cut -d , -f 1 | tr -d '\r' | tr -d '\n') + _domain_id=$(printf "%s" "$response" | grep '"domainid":' | cut -d : -f 10 | cut -d , -f 1 | tr -d '\r' | tr -d '\n') if [ "$_domain_id" ]; then _sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p) _domain="$h"