Commit 6b6d90be by 王岩

3.4.5+23相关内容

parent 8308fa99
...@@ -77,13 +77,26 @@ jPush() { ...@@ -77,13 +77,26 @@ jPush() {
} }
#发送消息通知
jPushMessage() {
echo $(curl -s "https://api.jpush.cn/v3/push" \
-H "Authorization: Basic YjhiNjcyZmY3MjkyNjM1MTkzZjFhNjgwOmJmYWExYTg3YTEwZTNlMTJjNTI0ZmI0OQ==" \
-H "Content-Type: text/plain;charset=UTF-8" \
-d '{"platform":["android", "ios"],"audience":{"alias":["test_83916"]},"message":{"title":"版本更新通知","msg_content":"为了提供更好的服务,系统有一个新版本需要更新,请更新版本。"},"notification":{"alert":"为了提供更好的服务,系统有一个新版本需要更新,请更新版本。","android": {"style": 1, "big_text": "为了提供更好的服务,系统有一个新版本需要更新,请更新版本。", "intent": {"url": "intent:#Intent;action=android.intent.action.MAIN;end"},"category":"IM"}}}' \
--compressed)
}
main() { main() {
DART_DEFINES=$(getToken) jPushMessage
# DART_DEFINES=$(getToken)
USERLIST=$(getUserId $DART_DEFINES) # USERLIST=$(getUserId $DART_DEFINES)
jPush $USERLIST # jPushMessage $USERLIST
# echo "$USERLIST" 2>&1 | tee curl.log # echo "$USERLIST" 2>&1 | tee curl.log
......
{ {
"android_version": "3.4.5+22", "android_version": "3.4.5+23",
"android_forceUpdate": false, "android_forceUpdate": false,
"android_msg": "2.3.4相关内容", "android_msg": "2.3.4相关内容",
"android_url": "https://gitlab.gzsle.com/wangyan/upgradeSFA/raw/test/app.apk", "android_url": "https://gitlab.gzsle.com/wangyan/upgradeSFA/raw/test/app.apk",
......
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