Commit 639ff345 by 郑永强

解决null异常

parent 14a94b29
...@@ -165,7 +165,7 @@ public class ParamCheck { ...@@ -165,7 +165,7 @@ public class ParamCheck {
String hex = clockLink.replaceAll(UrlConstant.OWN_SHORT_URL, ""); String hex = clockLink.replaceAll(UrlConstant.OWN_SHORT_URL, "");
String originLink = UrlUtils.getUrl4Own(hex); String originLink = UrlUtils.getUrl4Own(hex);
//编辑端自定义打卡 //编辑端自定义打卡
if (!originLink.contains("clock")) { if (StringUtil.isEmpty(originLink) || !originLink.contains("clock")) {
throw new BookBizException(BookBizException.PARAM_IS_NULL, "请填写正确的打卡链接"); throw new BookBizException(BookBizException.PARAM_IS_NULL, "请填写正确的打卡链接");
} }
// 拿到打卡的主键id // 拿到打卡的主键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