Skip to content

Commit

Permalink
修改中文字符为对应的UrlEncode
Browse files Browse the repository at this point in the history
record_line 记录线路,通过API记录线路获得,中文,比如:默认,必选
url中文可能存在问题,建议使用UrlEncode编码。
  • Loading branch information
duzhor authored Jan 18, 2020
1 parent ada0ae6 commit 90867e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ardnspod
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ arDdnsUpdate() {
recordId=$(echo $recordId | sed 's/.*"id":"\([0-9]*\)".*/\1/')

# Update IP
recordRs=$(arDdnsApi "Record.Ddns" "domain_id=$domainId&record_id=$recordId&sub_domain=$2&record_type=A&value=$hostIp&record_line=默认")
recordRs=$(arDdnsApi "Record.Ddns" "domain_id=$domainId&record_id=$recordId&sub_domain=$2&record_type=A&value=$hostIp&record_line=%e9%bb%98%e8%ae%a4")
recordIp=$(echo $recordRs | sed 's/.*,"value":"\([0-9\.]*\)".*/\1/')
recordCd=$(echo $recordRs | sed 's/.*{"code":"\([0-9]*\)".*/\1/')

Expand Down

0 comments on commit 90867e4

Please sign in to comment.