|
@@ -306,9 +306,13 @@ function mvn_clean_deploy() {
|
|
memo() {
|
|
memo() {
|
|
# 获取传入的参数
|
|
# 获取传入的参数
|
|
updatedContent="#速记 "$*
|
|
updatedContent="#速记 "$*
|
|
|
|
+ # 转义特殊字符
|
|
|
|
+ escapedContent=$(echo -n "$updatedContent" | jq -sRr @uri)
|
|
|
|
|
|
# 构建请求体数据
|
|
# 构建请求体数据
|
|
- data="{\"content\": \"$updatedContent\"}"
|
|
|
|
|
|
+ data="{\"content\": \"$escapedContent\"}"
|
|
|
|
+ # 构建请求体数据
|
|
|
|
+# data="{\"content\": \"$updatedContent\"}"
|
|
|
|
|
|
# 发送请求
|
|
# 发送请求
|
|
response=$(curl -s -X POST -H "Content-Type: application/json" \
|
|
response=$(curl -s -X POST -H "Content-Type: application/json" \
|