yj
2020-03-06 207dc8655711cddac2653e18b51e58a88dba2084
fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SpecialServiceImpl.java
@@ -27,6 +27,7 @@
import com.yeshi.fanli.entity.bus.homemodule.AdActivityVersionControl.AdActivityType;
import com.yeshi.fanli.entity.bus.homemodule.Special;
import com.yeshi.fanli.entity.common.JumpDetailV2;
import com.yeshi.fanli.entity.system.ConfigKeyEnum;
import com.yeshi.fanli.exception.banner.SwiperPictureException;
import com.yeshi.fanli.exception.homemodule.HomeNavbarException;
import com.yeshi.fanli.exception.homemodule.SpecialException;
@@ -97,6 +98,8 @@
         record.setParams(null);
      } else if (!StringUtil.isJson(params)) {
         throw new SpecialException(1, "跳转参数非JSON格式");
      } else {
         record.setParams(params.trim());
      }
      String startTime_str = record.getStartTime_str();
@@ -266,7 +269,7 @@
      String type = contentType.substring(contentType.indexOf("/") + 1);
      // 文件路径
      String filePath =FilePathEnum.special.getPath() + UUID.randomUUID().toString().replace("-", "") + "." + type;
      String filePath = FilePathEnum.special.getPath() + UUID.randomUUID().toString().replace("-", "") + "." + type;
      // 执行上传
      String fileLink = COSManager.getInstance().uploadFile(inputStream, filePath).getUrl();
@@ -286,7 +289,7 @@
   }
   @Override
   @Transactional(rollbackFor=Exception.class)
   @Transactional(rollbackFor = Exception.class)
   public void updateOrder(Long id, Integer moveType, Integer sex) throws SpecialException {
      if (id == null || moveType == null || (!moveType.equals(1) && !moveType.equals(-1)) || sex == null) {
@@ -352,7 +355,7 @@
            COSManager.getInstance().deleteFile(subPicture);
         }
      }
      if (listSpecial != null)
         for (Special special : listSpecial) {
            List<AdActivityVersionControl> versionList = adActivityVersionControlService
@@ -543,7 +546,7 @@
               if (hour < 6) {// 0-6点之间不进入自购立减的页面
                  s.setJumpDetail(jumpDetailV2Service.getByTypeCache("web"));
                  JSONObject params = new JSONObject();
                  params.put("url", configService.get("tlj_own_buy_nogoods"));
                  params.put("url", configService.get(ConfigKeyEnum.tljOwnBuyNogoods.getKey()));
                  s.setParams(params.toString());
               } else {
                  // 查询专题详情
@@ -552,6 +555,12 @@
                  s.setParams(special.getParams());
               }
            }
            if (s.getJumpDetail() != null) {
               s.getJumpDetail().setNeedLogin(s.isJumpLogin()
                     | (s.getJumpDetail().getNeedLogin() != null && s.getJumpDetail().getNeedLogin()));
            }
         }
      // 数据处理