Commit 42de4c52 by 吴博

Merge branch 'fixbug/paramCheck' into 'release'

bug: [none] 参数校验

See merge request rays/pcloud-book!1662
parents b3939ee4 12f8acfa
...@@ -923,7 +923,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz { ...@@ -923,7 +923,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
if (!(StringUtils.equalsAny(itemVO.getServeType(), if (!(StringUtils.equalsAny(itemVO.getServeType(),
ResourcePageConstants.ServeTypeEnum.OFFICIAL_ACCOUNT.getValue(), ResourcePageConstants.ServeTypeEnum.OFFICIAL_ACCOUNT.getValue(),
ResourcePageConstants.ServeTypeEnum.OUTER_LINK.getValue(), ResourcePageConstants.ServeTypeEnum.OUTER_LINK.getValue(),
ResourcePageConstants.ServeTypeEnum.OUTER_LINK.getValue(), ResourcePageConstants.ServeTypeEnum.MULTI_CHANNEL.getValue(),
ResourcePageConstants.ServeTypeEnum.FOLDER.getValue() ResourcePageConstants.ServeTypeEnum.FOLDER.getValue()
)) && (null == itemVO.getServeId() || StringUtil.isEmpty(itemVO.getServeType()))) { )) && (null == itemVO.getServeId() || StringUtil.isEmpty(itemVO.getServeType()))) {
throw new BookBizException(BookBizException.PARAM_IS_NULL, "缺少资源id或类型"); throw new BookBizException(BookBizException.PARAM_IS_NULL, "缺少资源id或类型");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment