Commit aca7d32c by 王岩

保存

parent 35e094b1
......@@ -50,17 +50,17 @@ jPush() {
-d '{"platform":["android", "ios"],"audience":{"alias":["test_83916"]},"message":{"title":"Update","msg_content":"Update"}}' \
--compressed)
response='{"name":"John", "age":30}'
# response='{"name":"John", "age":30}'
name=${response#*name":"}
name=${name%%","*}
sendno=${response#*sendno":"}
sendno=${sendno%%","*}
age=${response#*age":"}
age=${age%%","*}
msg_id=${response#*msg_id":"}
msg_id=${msg_id%%","*}
echo $name
echo $sendno
echo $age
echo $msg_id
if [ $? -ne 0 ];then
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