mirror of
https://github.com/acmesh-official/acme.sh.git
synced 2025-05-05 15:34:13 +00:00
format
This commit is contained in:
parent
b567b19464
commit
14338cfc01
@ -29,7 +29,7 @@ dns_ali_add() {
|
|||||||
|
|
||||||
record_id=$(_process_check_result)
|
record_id=$(_process_check_result)
|
||||||
|
|
||||||
if [ $record_id == 0 ]; then
|
if [ $record_id == 0 ]; then
|
||||||
#Add
|
#Add
|
||||||
_add_record_query "$_domain" "$_sub_domain" "$txtvalue"
|
_add_record_query "$_domain" "$_sub_domain" "$txtvalue"
|
||||||
else
|
else
|
||||||
@ -39,7 +39,7 @@ dns_ali_add() {
|
|||||||
|
|
||||||
_rest
|
_rest
|
||||||
|
|
||||||
echo $response
|
echo $response
|
||||||
|
|
||||||
return 0
|
return 0
|
||||||
}
|
}
|
||||||
@ -62,7 +62,7 @@ _get_root() {
|
|||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
_describe_records_query $h
|
_describe_records_query $h
|
||||||
if ! _rest; then
|
if ! _rest; then
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
@ -81,8 +81,8 @@ _get_root() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
_rest() {
|
_rest() {
|
||||||
signature=$(_sign $query)
|
signature=$(_sign $query)
|
||||||
signature=$(_urlencode $signature)
|
signature=$(_urlencode $signature)
|
||||||
url= ${Ali_API}?${query}'&Signature='$signature
|
url= ${Ali_API}?${query}'&Signature='$signature
|
||||||
|
|
||||||
response="$(_get "$url")"
|
response="$(_get "$url")"
|
||||||
@ -164,8 +164,8 @@ _time() {
|
|||||||
zone=$(date +%Z)
|
zone=$(date +%Z)
|
||||||
sec=$(date +%s)
|
sec=$(date +%s)
|
||||||
t=$(date -d "1970-01-01 $zone $sec sec" +%Y-%m-%dT%H:%M:%SZ)
|
t=$(date -d "1970-01-01 $zone $sec sec" +%Y-%m-%dT%H:%M:%SZ)
|
||||||
t=$(_urlencode $t)
|
t=$(_urlencode $t)
|
||||||
echo $t
|
echo $t
|
||||||
}
|
}
|
||||||
|
|
||||||
_sign() {
|
_sign() {
|
||||||
@ -174,7 +174,6 @@ _sign() {
|
|||||||
echo -n $StringToSign | openssl sha1 -hmac $Ali_Secret'&' -binary | openssl base64
|
echo -n $StringToSign | openssl sha1 -hmac $Ali_Secret'&' -binary | openssl base64
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
_process_check_result() {
|
_process_check_result() {
|
||||||
python -c \
|
python -c \
|
||||||
"
|
"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user