Commit aca7d32c by 王岩

保存

parent 35e094b1
...@@ -50,17 +50,17 @@ jPush() { ...@@ -50,17 +50,17 @@ 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)
response='{"name":"John", "age":30}' # response='{"name":"John", "age":30}'
name=${response#*name":"} sendno=${response#*sendno":"}
name=${name%%","*} sendno=${sendno%%","*}
age=${response#*age":"} msg_id=${response#*msg_id":"}
age=${age%%","*} msg_id=${msg_id%%","*}
echo $name echo $sendno
echo $age echo $msg_id
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