Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery.common.java
/
mcz-core
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
20e9c874
authored
Jul 10, 2016
by
Gil Sade
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
changed the path of push server
parent
cc3fa79b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
build.gradle
src/main/java/mcz/core/util/pushNotification/PushHandler.java
build.gradle
View file @
20e9c874
group
'com.ipgallery.common'
group
'com.ipgallery.common'
version
'1.0.
1
'
version
'1.0.
2
'
apply
plugin:
'java'
apply
plugin:
'java'
apply
plugin:
'maven-publish'
apply
plugin:
'maven-publish'
...
...
src/main/java/mcz/core/util/pushNotification/PushHandler.java
View file @
20e9c874
...
@@ -57,7 +57,7 @@ private final static String PUSH_SERVER_BULK;
...
@@ -57,7 +57,7 @@ private final static String PUSH_SERVER_BULK;
}
}
public
PushHandler
(
Dao
dao
){
public
PushHandler
(
Dao
dao
){
restClient
=
new
SimpleRestClient
(
"
PushServer
"
,
PUSH_SERVER_URL
);
restClient
=
new
SimpleRestClient
(
""
,
PUSH_SERVER_URL
);
restClient
.
Initialize
(
100
);
restClient
.
Initialize
(
100
);
gson
=
new
Gson
();
gson
=
new
Gson
();
this
.
dao
=
dao
;
this
.
dao
=
dao
;
...
@@ -141,7 +141,7 @@ private final static String PUSH_SERVER_BULK;
...
@@ -141,7 +141,7 @@ private final static String PUSH_SERVER_BULK;
{
{
bulkPushModel
.
msg
=
msg
;
bulkPushModel
.
msg
=
msg
;
String
json
=
gson
.
toJson
(
bulkPushModel
);
String
json
=
gson
.
toJson
(
bulkPushModel
);
SimpleRestResponse
resp
=
restClient
.
post
(
"/
api/
push/sendBulkPush"
,
(
String
)
null
,
null
,
json
);
SimpleRestResponse
resp
=
restClient
.
post
(
"/push/sendBulkPush"
,
(
String
)
null
,
null
,
json
);
if
(
resp
.
isSuccess
())
if
(
resp
.
isSuccess
())
return
true
;
return
true
;
return
false
;
return
false
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment