Commit aa124b37 by 王岩

保存

parent aca7d32c
...@@ -44,31 +44,12 @@ get_current_branch() { ...@@ -44,31 +44,12 @@ get_current_branch() {
#发送消息通知 #发送消息通知
jPush() { jPush() {
response=$(curl -s "https://api.jpush.cn/v3/push" \ echo $(curl -s "https://api.jpush.cn/v3/push" \
-H "Authorization: Basic YjhiNjcyZmY3MjkyNjM1MTkzZjFhNjgwOmJmYWExYTg3YTEwZTNlMTJjNTI0ZmI0OQ==" \ -H "Authorization: Basic YjhiNjcyZmY3MjkyNjM1MTkzZjFhNjgwOmJmYWExYTg3YTEwZTNlMTJjNTI0ZmI0OQ==" \
-H "Content-Type: text/plain;charset=UTF-8" \ -H "Content-Type: text/plain;charset=UTF-8" \
-d '{"platform":["android", "ios"],"audience":{"alias":["test_83916"]},"message":{"title":"Update","msg_content":"Update"}}' \ -d '{"platform":["android", "ios"],"audience":{"alias":["test_83916"]},"message":{"title":"Update","msg_content":"Update"}}' \
--compressed) --compressed)
# response='{"name":"John", "age":30}'
sendno=${response#*sendno":"}
sendno=${sendno%%","*}
msg_id=${response#*msg_id":"}
msg_id=${msg_id%%","*}
echo $sendno
echo $msg_id
if [ $? -ne 0 ];then
log $? "error"
exit 1
else
log "更新通知发送成功" "success"
fi
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment