From 8b43d4e1190fc9e2261be0579e53cc6c2987f946 Mon Sep 17 00:00:00 2001
From: wjc <1243177876@qq.com>
Date: 星期四, 27 十一月 2025 19:37:56 +0800
Subject: [PATCH] 2025年11月27日19:37:50 备份代码
---
app/src/main/java/com/hdl/photovoltaic/other/HdlPushLogic.java | 18 +++++++++++++++++-
1 files changed, 17 insertions(+), 1 deletions(-)
diff --git a/app/src/main/java/com/hdl/photovoltaic/other/HdlPushLogic.java b/app/src/main/java/com/hdl/photovoltaic/other/HdlPushLogic.java
index 02dba2f..8f5a6d8 100644
--- a/app/src/main/java/com/hdl/photovoltaic/other/HdlPushLogic.java
+++ b/app/src/main/java/com/hdl/photovoltaic/other/HdlPushLogic.java
@@ -72,7 +72,7 @@
}
} else {
// if (isOpened) {
- //浜у搧缁忕悊璇存殏鏃朵笉鍋� 2024骞�03鏈�29鏃�10:34:44
+ //浜у搧缁忕悊璇存殏鏃朵笉鍋� 2024骞�03鏈�29鏃�10:34:44
// boolean existsActivity = AppManagerUtils.getAppManager().existsActivity(MessageCenterListActivity.class);
// if (existsActivity) {
// //瀛樺湪鍞竴涓�绉嶅彲鑳藉氨鏄綋鍓嶆椿鍔ㄧ獥鍙e氨鏄畠
@@ -157,6 +157,22 @@
pushMessageInfoBean.setMessageType(messageType);
}
}
+ if (TextUtils.isEmpty(title)) {
+ if (expandDataObject.containsKey("title")) {
+ String messageTitle = Objects.requireNonNull(expandDataObject.get("title")).toString();
+ if (!TextUtils.isEmpty(messageTitle)) {
+ pushMessageInfoBean.setTitle(messageTitle);
+ }
+ }
+ }
+ if (TextUtils.isEmpty(content)) {
+ if (expandDataObject.containsKey("content")) {
+ String messageContent = Objects.requireNonNull(expandDataObject.get("content")).toString();
+ if (!TextUtils.isEmpty(messageContent)) {
+ pushMessageInfoBean.setTitle(messageContent);
+ }
+ }
+ }
if (expandDataObject.containsKey("homeId")) {
String homeId = Objects.requireNonNull(expandDataObject.get("homeId")).toString();
if (!TextUtils.isEmpty(homeId)) {
--
Gitblit v1.8.0