admin
2019-07-11 3824cbcaec6e6c67418d5280a53e9c2fedeef6f9
fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/FloatADServiceImpl.java
@@ -8,9 +8,9 @@
import java.util.UUID;
import javax.annotation.Resource;
import javax.transaction.Transactional;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
import org.yeshi.utils.tencentcloud.COSManager;
@@ -48,6 +48,8 @@
      String params = record.getParams();
      if (params == null || params.trim().length() == 0 || "null".equalsIgnoreCase(params) ) {
         record.setParams(null);
      } else if (!StringUtil.isJson(params)) {
         throw new FloatADException(1, "跳转参数非JSON格式");
      }
      
      if (!StringUtil.isNullOrEmpty(jumpType)) {
@@ -80,6 +82,12 @@
      String picture = null;
      if (file != null) {
         picture = uploadPicture(file);
      }
      // 适用类型 : 0通用  1新人
      Integer type = record.getType();
      if (type == null) {
         record.setType(0);
      }
      
      Long id = record.getId();
@@ -256,8 +264,8 @@
   }
   @Override
   public FloatAD getEffectiveFloatAD(String position) {
      FloatAD floatAD = floatADMapper.getEffectiveFloatAD(position);
   public FloatAD getEffectiveFloatAD(String position, Integer type) {
      FloatAD floatAD = floatADMapper.getEffectiveFloatAD(position, type);
      if (floatAD != null) {
         JumpDetailV2 jumpDetail = floatAD.getJumpDetail();