Commit 20e9c874 by Gil Sade

changed the path of push server

parent cc3fa79b
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'
......
...@@ -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;
......
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 sign in to comment