From 3532068a157dc0e05b64b4fd2c6e87a890f15e47 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期五, 12 四月 2019 17:07:58 +0800 Subject: [PATCH] bug修改 --- fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java index 781d20b..6ec3e31 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java @@ -80,6 +80,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 SwiperPictureException(1, "璺宠浆鍙傛暟闈濲SON鏍煎紡"); } if (!StringUtil.isNullOrEmpty(jumpType)) { @@ -107,6 +109,11 @@ e.printStackTrace(); } + String remark = record.getRemark(); + if (remark != null && (remark.trim().length() == 0 || remark.equalsIgnoreCase("null"))) { + record.setRemark(null); + } + String picture = null; if (file != null) { -- Gitblit v1.8.0