| | |
| | | // 部分推送
|
| | | for (String str_uid: listuid) {
|
| | | if (str_uid != null && str_uid.trim().length() > 0) {
|
| | | pushService.pushUrl(Long.parseLong(str_uid), url, title, content, listIOS, listAndroid);
|
| | | pushService.pushUrl(Long.parseLong(str_uid), title, content, url, listIOS, listAndroid);
|
| | | }
|
| | | }
|
| | | }
|
| | |
| | | Long goodsId = commonGoods.getGoodsId();
|
| | | String url = "https://item.taobao.com/item.htm?id=" + goodsId;
|
| | |
|
| | | pushService.pushGoods(pushGoods.getUid(), url, alertTitle, alertContent, listIOS, listAndroid);
|
| | | pushService.pushGoods(pushGoods.getUid(), alertTitle, alertContent, url,listIOS, listAndroid);
|
| | |
|
| | | } else {
|
| | | /* 多个商品推送 */
|
| | |
| | | // 生成链接
|
| | | url = url + "?id=" + id;
|
| | |
|
| | | pushService.pushUrl(pushGoods.getUid(), url, alertTitle, alertContent, listIOS, listAndroid);
|
| | | pushService.pushUrl(pushGoods.getUid(), alertTitle, alertContent, url, listIOS, listAndroid);
|
| | | }
|
| | |
|
| | | // 已推送
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | public void pushGoods(Long uid, String url, String title, String content, List<String> listIOS,
|
| | | public void pushGoods(Long uid, String title, String content, String url, List<String> listIOS,
|
| | | List<String> listAndroid) throws PushException {
|
| | | String gids = url.split("id=")[1];
|
| | | String gid = gids.split("&")[0];
|
| | |
| | |
|
| | |
|
| | | @Override
|
| | | public void pushUrl(Long uid, String url, String title, String content, List<String> listIOS,
|
| | | public void pushUrl(Long uid, String title, String content, String url, List<String> listIOS,
|
| | | List<String> listAndroid) throws PushException {
|
| | |
|
| | | if (StringUtil.isNullOrEmpty(url))
|
| | |
| | | * @param listAndroid
|
| | | * @throws PushException
|
| | | */
|
| | | void pushGoods(Long uid, String url, String title, String content, List<String> listIOS,
|
| | | void pushGoods(Long uid, String title, String content, String url, List<String> listIOS,
|
| | | List<String> listAndroid) throws PushException;
|
| | |
|
| | | /**
|
| | |
| | | * @param listAndroid
|
| | | * @throws PushException
|
| | | */
|
| | | void pushUrl(Long uid, String url, String title, String content,List<String> listIOS,
|
| | | void pushUrl(Long uid, String title, String content, String url, List<String> listIOS,
|
| | | List<String> listAndroid) throws PushException;
|
| | |
|
| | | /**
|