Commit 8ed18d7d by 高鹏

Merge branch 'fix-1020638' into 'master'

解决null异常

See merge request rays/pcloud-book!431
parents 14a94b29 639ff345
......@@ -165,7 +165,7 @@ public class ParamCheck {
String hex = clockLink.replaceAll(UrlConstant.OWN_SHORT_URL, "");
String originLink = UrlUtils.getUrl4Own(hex);
//编辑端自定义打卡
if (!originLink.contains("clock")) {
if (StringUtil.isEmpty(originLink) || !originLink.contains("clock")) {
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