From e2b90ab5fa5c12d945751a08b97e252ce68341fd Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期四, 08 八月 2019 09:45:06 +0800 Subject: [PATCH] 华为推送修改,商品更新循环依赖修改 --- fanli/src/main/java/com/yeshi/fanli/service/impl/push/HWPushServiceImpl.java | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/HWPushServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/HWPushServiceImpl.java index 84b72c3..5bb1802 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/HWPushServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/HWPushServiceImpl.java @@ -32,7 +32,10 @@ @Async("pushExecutor") @Override - public void pushGoods(Long uid, Long auctionId, String title, String content, String versions) throws PushException { + public void pushGoods(Long uid, Long auctionId, String title, String content, String versions) + throws PushException { + if (1 > 0) + return; String gid = auctionId + ""; JSONObject json = new JSONObject(); json.put("url", ""); @@ -84,10 +87,11 @@ } } - @Async("pushExecutor") @Override public void pushUrl(Long uid, String url, String title, String content, String versions) throws PushException { + if (1 > 0) + return; JSONObject json = new JSONObject(); json.put("url", url); json.put("type", "url"); @@ -132,7 +136,7 @@ } } try { - HWPushUtil.pushWeb(deviceTokens, title, content, url); + HWPushUtil.pushUrl(deviceTokens, title, content, url); } catch (Exception e) { PushLogHelper.hwError(e); } @@ -147,7 +151,7 @@ for (DeviceTokenHW dt : hwDeviceList) deviceList.add(dt.getDeviceToken()); try { - HWPushUtil.pushWeb(deviceList, title, content, url); + HWPushUtil.pushUrl(deviceList, title, content, url); } catch (Exception e) { PushLogHelper.hwError(e); } @@ -155,11 +159,11 @@ } } - @Async("pushExecutor") @Override public void pushZNX(Long uid, AccountMessage msg, SystemZnx systemZNX, String versions) throws PushException { - + if (1 > 0) + return; JSONObject contentJson = new JSONObject(); contentJson.put("isOpen", 0); contentJson.put("createTime", java.lang.System.currentTimeMillis()); @@ -218,7 +222,8 @@ @Async("pushExecutor") @Override - public void pushBaiChuanUrl(Long uid, String title, String content, String url, String versions) throws PushException { + public void pushBaiChuanUrl(Long uid, String title, String content, String url, String versions) + throws PushException { // TODO 鎺ㄩ�佹窐瀹㈢櫨宸濋摼鎺� } @@ -227,7 +232,7 @@ @Override public void pushWelfareCenter(Long uid, String title, String content, String versions) throws PushException { // TODO Auto-generated method stub - + } } -- Gitblit v1.8.0