|
@@ -23,6 +23,7 @@ import android.view.MenuItem;
|
|
|
import android.widget.TextView;
|
|
import android.widget.TextView;
|
|
|
import android.widget.Toast;
|
|
import android.widget.Toast;
|
|
|
|
|
|
|
|
|
|
+import com.alibaba.fastjson.JSON;
|
|
|
import com.android.volley.Response;
|
|
import com.android.volley.Response;
|
|
|
import com.android.volley.VolleyError;
|
|
import com.android.volley.VolleyError;
|
|
|
import com.ipaulpro.afilechooser.FileUtils;
|
|
import com.ipaulpro.afilechooser.FileUtils;
|
|
@@ -490,11 +491,10 @@ public class MucChatActivity extends ActionBackActivity
|
|
|
public void sendPushTask(String from, String to, String body, int[] str) {
|
|
public void sendPushTask(String from, String to, String body, int[] str) {
|
|
|
String url = "http://113.105.74.140:8092/tigase/push";
|
|
String url = "http://113.105.74.140:8092/tigase/push";
|
|
|
Map<String, Object> params = new HashMap<String, Object>();
|
|
Map<String, Object> params = new HashMap<String, Object>();
|
|
|
- params.put("from", from);
|
|
|
|
|
- params.put("to", to);
|
|
|
|
|
- params.put("text", str);
|
|
|
|
|
|
|
+ params.put("text", JSON.toJSONString(str));
|
|
|
params.put("body", body);
|
|
params.put("body", body);
|
|
|
- Log.i("push", "推送百度 from:" + from + "to:" + to + "body:" + body);
|
|
|
|
|
|
|
+ Log.i("push", "推送百度 from:" + from + "to:" + to + "body:" + body+"text:"+
|
|
|
|
|
+ JSON.toJSONString(str));
|
|
|
ViewUtil.httpSendRequest(this, url, params, mHandler, null, 5, null, null, "get");
|
|
ViewUtil.httpSendRequest(this, url, params, mHandler, null, 5, null, null, "get");
|
|
|
}
|
|
}
|
|
|
|
|
|