Commit 8de76c90 by 王岩

保存

parent e08785c8
...@@ -50,11 +50,13 @@ jPush() { ...@@ -50,11 +50,13 @@ jPush() {
-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)
sendno=$(echo $response | jq -r '.sendno') response='{"name":"John", "age":30}'
msg_id=$(echo $response | jq -r '.msg_id')
echo $sendno name=${response#*name":"}
echo $msg_id name=${name%%","*}
age=${response#*age":"}
age=${age%%","*}
if [ $? -ne 0 ];then if [ $? -ne 0 ];then
log $? "error" log $? "error"
......
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