Browse Source

修正 dns_la 获取domain_id的值

#4785
pull/4786/head
OPPO9008 2 years ago
committed by GitHub
parent
commit
0c33630192
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dnsapi/dns_la.sh

2
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"

Loading…
Cancel
Save