From 0c33630192741d30002aa322d4bf5e78ff553e31 Mon Sep 17 00:00:00 2001 From: OPPO9008 <41640509+OPPO9008@users.noreply.github.com> Date: Mon, 4 Sep 2023 23:56:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20dns=5Fla=20=E8=8E=B7?= =?UTF-8?q?=E5=8F=96domain=5Fid=E7=9A=84=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit #4785 --- 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..19940105 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 -o '"domainid":[0-9]*'| awk -F':' '{print $2}') if [ "$_domain_id" ]; then _sub_domain=$(printf "%s" "$domain" | cut -d . -f 1-$p) _domain="$h"