| | |
| | | appSecret = config.getAppSecret(); |
| | | } |
| | | |
| | | private static String getIntent(String type, String activity, String url, String webUrl, Long id) { |
| | | private static String getIntent(String type, String activity, String url, String webUrl, String id) { |
| | | net.sf.json.JSONObject data = new net.sf.json.JSONObject(); |
| | | if (type != null) |
| | | data.put("type", type); |
| | |
| | | * @param goodsId |
| | | * @throws PushException |
| | | */ |
| | | public static void pushGoods(List<String> deviceTokens, String title, String content, int goodsType, Long goodsId, String androidBaseActivityName) |
| | | public static void pushGoods(List<String> deviceTokens, String title, String content, int goodsType, String goodsId, String androidBaseActivityName) |
| | | throws PushException { |
| | | if (deviceTokens != null && deviceTokens.size() > 100) |
| | | throw new PushException(1, "设备数不能超过100个"); |