admin
2020-05-19 744594ef1a2f530fc3e86ea9dc48b62247f79420
fanli/src/main/java/com/yeshi/fanli/service/impl/push/IOSPushServiceImpl.java
@@ -326,7 +326,7 @@
    * 
    * @param json
    */
   @Transactional
   @Transactional(rollbackFor=Exception.class)
   public void addPushIOSQueue(MessageInfo info, String url, int type, String versionCodes) throws PushException {
      if (Constant.IS_TEST)
@@ -483,11 +483,13 @@
      Calendar now = Calendar.getInstance();
      int hour = now.get(Calendar.HOUR_OF_DAY);
      if (hour >= 8 && hour < 20) {
         ispush = true; // 可推送
      } else {
         listNotPushId = validateNotDisturb();
      }
//      if (hour >= 8 && hour < 20) {
//         ispush = true; // 可推送
//      } else {
//         listNotPushId = validateNotDisturb();
//      }
      ispush=true;//TODO 处理消息免打扰
      for (DeviceTokenIOS ios : list) {