admin
2019-06-25 19ceb36ec4e57f25313662d08bc5cc918076b204
fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SpecialServiceImpl.java
@@ -26,11 +26,11 @@
import com.yeshi.fanli.service.inter.homemodule.SpecialCardService;
import com.yeshi.fanli.service.inter.homemodule.SpecialPlaceService;
import com.yeshi.fanli.service.inter.homemodule.SpecialService;
import com.yeshi.fanli.util.Constant;
import com.yeshi.fanli.util.StringUtil;
import com.yeshi.fanli.util.VersionUtil;
import net.sf.json.JSONObject;
import sun.security.krb5.internal.ccache.CCacheInputStream;
@Service
public class SpecialServiceImpl implements SpecialService {
@@ -334,7 +334,11 @@
      // 首页-5圆形2排区域
      JSONObject arcMap = new JSONObject();
      List<Special> listArc = specialMapper.listByPlaceKey("index_arc");
      String indexArc = "index_arc";
      if (VersionUtil.greaterThan_1_5_60(acceptData.getPlatform(), acceptData.getVersion()))
         indexArc = "index_arc_1.5.6";
      List<Special> listArc = specialMapper.listByPlaceKey(indexArc);
      if (listArc == null) {
         listArc = new ArrayList<Special>();
      } else if (listArc.size() > 0) {
@@ -346,7 +350,8 @@
      }
      // 处理9.9包邮
      if (listArc != null && VersionUtil.greaterThan_1_5_50(acceptData.getPlatform(), acceptData.getVersion()))
      if (listArc != null && VersionUtil.greaterThan_1_5_50(acceptData.getPlatform(), acceptData.getVersion())
            && !Constant.IS_TEST)
         for (Special s : listArc) {
            if (s.getName().contains("9.9")) {// 9块9
               s.setJumpDetail(jumpDetailV2Service.getByTypeCache("common_template"));
@@ -386,8 +391,12 @@
      activityMap.put("list", JsonUtil.getApiCommonGson().toJson(listActivity));
      // 首页-方形专题(品牌券、母婴...)
      String indexBlock = "index_block";
      if (VersionUtil.greaterThan_1_5_60(acceptData.getPlatform(), acceptData.getVersion()))
         indexBlock = "index_block_1.5.6";
      JSONObject blockJsonMap = new JSONObject();
      List<Special> listBlock = specialMapper.listByPlaceKey("index_block");
      List<Special> listBlock = specialMapper.listByPlaceKey(indexBlock);
      if (listBlock == null) {
         listBlock = new ArrayList<Special>();
      } else if (listBlock.size() > 0) {