admin
2019-03-13 69bee82b81626b82b7f39f0e459e4f56b1699b51
fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java
@@ -81,6 +81,7 @@
      pushRecord.setTitle(title);
      pushRecord.setAppName(Constant.systemCommonConfig.getProjectChineseName());
      pushRecord.setAccount(1);
      pushRecord.setCreatetime(java.lang.System.currentTimeMillis());
      xmPushService.pushGoods(uid, Long.parseLong(gid), title, content);
      iosPushService.pushGoods(uid, Long.parseLong(gid), title, content);
@@ -106,6 +107,7 @@
      pushRecord.setUrl(url);
      pushRecord.setTitle(title);
      pushRecord.setAppName(Constant.systemCommonConfig.getProjectChineseName());
      pushRecord.setCreatetime(java.lang.System.currentTimeMillis());
      xmPushService.pushUrl(uid, url, title, content);
      iosPushService.pushUrl(uid, url, title, content);
@@ -135,6 +137,8 @@
         pushRecord.setState(1); // 成功
         pushRecord.setType(4); // 类型:站内信
         pushRecord.setAppName(Constant.systemCommonConfig.getProjectChineseName());
         pushRecord.setCreatetime(java.lang.System.currentTimeMillis());
         xmPushService.pushZNX(uId, null, systemZnx);
         iosPushService.pushZNX(uId, null, systemZnx);
         hwPushService.pushZNX(uId, null, systemZnx);
@@ -160,6 +164,8 @@
         pushRecord.setState(1); // 成功
         pushRecord.setType(PushController.ZNX); // 类型:站内信
         pushRecord.setAppName(Constant.systemCommonConfig.getProjectChineseName());
         pushRecord.setCreatetime(java.lang.System.currentTimeMillis());
         pushRecordMapper.insertSelective(pushRecord);
      }
   }
@@ -179,4 +185,10 @@
      xmPushService.pushBaiChuanUrl(uid, title, content, url);
   }
   @Override
   public void pushWelfareCenter(Long uid, String title, String content) throws PushException {
      iosPushService.pushWelfareCenter(uid, title, content);
      xmPushService.pushWelfareCenter(uid, title, content);
   }
}