| | |
| | | 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);
|
| | |
| | | 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);
|
| | |
| | | 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);
|
| | |
| | | pushRecord.setState(1); // 成功
|
| | | pushRecord.setType(PushController.ZNX); // 类型:站内信
|
| | | pushRecord.setAppName(Constant.systemCommonConfig.getProjectChineseName());
|
| | | pushRecord.setCreatetime(java.lang.System.currentTimeMillis());
|
| | | |
| | | pushRecordMapper.insertSelective(pushRecord);
|
| | | }
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void pushWEEX(Long uid, String title, String content, String weexUrl) throws PushException {
|
| | | if (StringUtil.isNullOrEmpty(title))
|
| | | throw new PushException(1, "无推送标题");
|
| | | if (StringUtil.isNullOrEmpty(content))
|
| | | throw new PushException(1, "无推送内容");
|
| | | iosPushService.pushWEEX(uid, title, content, weexUrl);
|
| | | }
|
| | |
|
| | | @Override
|
| | | public void pushBaiChuanUrl(Long uid, String title, String content, String url) throws PushException {
|
| | | // iosPushService.pushBaiChuanUrl(uid, title, content, url);
|
| | | xmPushService.pushBaiChuanUrl(uid, title, content, url);
|
| | | }
|
| | |
|
| | | }
|