Skip to content

Commit 9043048

Browse files
author
laodong
committed
4.0.2
1 parent 837fca0 commit 9043048

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

lib/JPush/JPushAsync.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ var REPORT_USER = '/users'
2020
var REPORT_MESSAGE = '/messages'
2121
var HOST_NAME_SSL = 'https://device.jpush.cn'
2222
var DEVICE_PATH = '/v3/devices'
23-
var TAG_PATH = '/v3/tags'
23+
var TAG_PATH = '/v3/tags/'
2424
var ALIAS_PATH = '/v3/aliases'
2525
var VALIDATE = '/validate'
2626
var DEFAULT_MAX_RETRY_TIMES = 3
@@ -175,7 +175,7 @@ async function isDeviceInTag (theTag, registrationID) {
175175
}
176176

177177
async function addRemoveDevicesFromTag (theTag, toAddUsers, toRemoveUsers) {
178-
var url = HOST_NAME_SSL + TAG_PATH + '/' + theTag
178+
var url = HOST_NAME_SSL + TAG_PATH + theTag
179179
var registrationIds = {}
180180
if (toAddUsers != null && toAddUsers.length > 0) {
181181
registrationIds['add'] = toAddUsers

lib/JPush/PushPayload.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ function android (alert, title, builder_id, extras, priority, category, style, v
202202
} else if (style === 3) {
203203
android['big_pic_path'] = value
204204
}
205+
android['style'] = style
205206
}
206207

207208
if (alertType != null) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "jpush-async",
3-
"version": "4.0.1",
3+
"version": "4.0.2",
44
"description": "JPush's officially supported Node.js client library.",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)