From b2fc802bf35143ed957a86d95e2de49934ea9ea5 Mon Sep 17 00:00:00 2001 From: admin <weikou2014> Date: 星期三, 14 十月 2020 14:09:51 +0800 Subject: [PATCH] 腾讯X5bug修复 --- BuWanVideo/src/com/weikou/beibeivideo/util/VideoUtil.java | 6 +++++- 1 files changed, 5 insertions(+), 1 deletions(-) diff --git a/BuWanVideo/src/com/weikou/beibeivideo/util/VideoUtil.java b/BuWanVideo/src/com/weikou/beibeivideo/util/VideoUtil.java index 76762c2..6cfc2e9 100644 --- a/BuWanVideo/src/com/weikou/beibeivideo/util/VideoUtil.java +++ b/BuWanVideo/src/com/weikou/beibeivideo/util/VideoUtil.java @@ -8,7 +8,11 @@ public static String getWatchCountShortName(String watchCount) { DecimalFormat df = new DecimalFormat("###.0"); - return (StringUtils.isBlank(watchCount) ? "0" : (Integer.parseInt(watchCount)) / 10000 > 0 ? df.format(Integer.parseInt(watchCount) / 10000f) + "涓�" : watchCount); + try { + return (StringUtils.isBlank(watchCount) ? "0" : (Integer.parseInt(watchCount)) / 10000 > 0 ? df.format(Integer.parseInt(watchCount) / 10000f) + "涓�" : watchCount); + } catch (Exception e) { + } + return ""; } -- Gitblit v1.8.0