From 114685cc870d0e00dc157656ae9039f285d3f5f1 Mon Sep 17 00:00:00 2001 From: Administrator <Administrator@S0ZHK00LKCA6OYY> Date: 星期五, 30 十一月 2018 15:59:42 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- fanli/src/main/java/com/yeshi/fanli/util/factory/IOSPushFactory.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/util/factory/IOSPushFactory.java b/fanli/src/main/java/com/yeshi/fanli/util/factory/IOSPushFactory.java index 13d5789..6697e10 100644 --- a/fanli/src/main/java/com/yeshi/fanli/util/factory/IOSPushFactory.java +++ b/fanli/src/main/java/com/yeshi/fanli/util/factory/IOSPushFactory.java @@ -15,7 +15,7 @@ String body = json.optJSONObject("aps").optJSONObject("alert").optString("body"); if (StringUtil.isNullOrEmpty(body) || body.length() < 4) { // 鍓婂噺鏍囬 - if (!StringUtil.isNullOrEmpty(title) && body.length() > 6) { + if (!StringUtil.isNullOrEmpty(title) && title.length() > 6) { json.optJSONObject("aps").optJSONObject("alert").put("title", title.substring(0, title.length() - 1)); continue; -- Gitblit v1.8.0