admin
2019-03-15 c9f28b430799cc8d40c7a7d99fd0f0eeecff6a5c
fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java
@@ -21,7 +21,6 @@
import com.yeshi.fanli.service.inter.push.PushRecordService;
import com.yeshi.fanli.service.inter.push.PushService;
import com.yeshi.fanli.service.inter.push.XMPushService;
import com.yeshi.fanli.service.inter.user.AccountMessageService;
import com.yeshi.fanli.service.inter.user.SystemZnxService;
import com.yeshi.fanli.util.Constant;
import com.yeshi.fanli.util.StringUtil;
@@ -42,9 +41,6 @@
   @Resource
   private SystemZnxService systemZnxService;
   @Resource
   private AccountMessageService accountMessageService;
   @Resource
   private DeviceTokenHWService deviceTokenHWService;
@@ -185,6 +181,17 @@
   public void pushBaiChuanUrl(Long uid, String title, String content, String url, List<String> listVersion) throws PushException {
      iosPushService.pushBaiChuanUrl(uid, title, content, url, listVersion);
      xmPushService.pushBaiChuanUrl(uid, title, content, url, listVersion);
      // 插入推送记录
      PushRecord pushRecord = new PushRecord();
      pushRecord.setTitle(title);
      pushRecord.setUid(uid);
      pushRecord.setState(1); // 成功
      pushRecord.setType(PushController.BAICHUAN); // 类型:百川
      pushRecord.setAppName(Constant.systemCommonConfig.getProjectChineseName());
      pushRecord.setCreatetime(java.lang.System.currentTimeMillis());
      pushRecordMapper.insertSelective(pushRecord);
   }
   @Override