From 28a0efc6ec16f3f82eb8e16e87269300d6744fd4 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 25 九月 2019 19:18:17 +0800 Subject: [PATCH] 金币版本拦截与频率拦截bug修改 --- utils/src/main/java/org/yeshi/utils/StringUtil.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/utils/src/main/java/org/yeshi/utils/StringUtil.java b/utils/src/main/java/org/yeshi/utils/StringUtil.java index 0fa0f35..46706f5 100644 --- a/utils/src/main/java/org/yeshi/utils/StringUtil.java +++ b/utils/src/main/java/org/yeshi/utils/StringUtil.java @@ -67,7 +67,7 @@ * @return */ public static boolean isNullOrEmpty(String text) { - if (text == null || text.length() == 0 || text.equalsIgnoreCase("null")) { + if (text == null || text.trim().length() == 0 || text.equalsIgnoreCase("null")) { return true; } return false; -- Gitblit v1.8.0