From 8c415e4ebaa206d8cf721d1e0e787efcae3503de Mon Sep 17 00:00:00 2001 From: Shimada666 <649940882@qq.com> Date: Mon, 30 Dec 2019 01:42:48 +0800 Subject: [PATCH] Fixed 2019.11.26 update of dnspod --- ddnspod.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ddnspod.sh b/ddnspod.sh index 10c72c0..c44c3d7 100755 --- a/ddnspod.sh +++ b/ddnspod.sh @@ -50,11 +50,11 @@ arDdnsInfo() { # Get domain ID domainID=$(arApiPost "Domain.Info" "domain=$1") - domainID=$(echo $domainID | sed 's/.*{"id":"\([0-9]*\)".*/\1/') + domainID=$(echo $domainID | sed 's/.*"id":"\([0-9]*\)".*/\1/') # Get Record ID recordID=$(arApiPost "Record.List" "domain_id=$domainID&sub_domain=$2") - recordID=$(echo $recordID | sed 's/.*\[{"id":"\([0-9]*\)".*/\1/') + recordID=$(echo $recordID | sed 's/.*"id":"\([0-9]*\)".*/\1/') # Last IP recordIP=$(arApiPost "Record.Info" "domain_id=$domainID&record_id=$recordID")