Commit 12f8acfa by guiq

bug: [none] 参数校验

parent d90c27fb
......@@ -923,7 +923,7 @@ public class ResourcePageBizImpl implements ResourcePageBiz {
if (!(StringUtils.equalsAny(itemVO.getServeType(),
ResourcePageConstants.ServeTypeEnum.OFFICIAL_ACCOUNT.getValue(),
ResourcePageConstants.ServeTypeEnum.OUTER_LINK.getValue(),
ResourcePageConstants.ServeTypeEnum.OUTER_LINK.getValue(),
ResourcePageConstants.ServeTypeEnum.MULTI_CHANNEL.getValue(),
ResourcePageConstants.ServeTypeEnum.FOLDER.getValue()
)) && (null == itemVO.getServeId() || StringUtil.isEmpty(itemVO.getServeType()))) {
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