From 49a96758aa4dabf69ddf414db9f3f707bbc5e6ac Mon Sep 17 00:00:00 2001
From: renhaoting <370797079@qq.com>
Date: Tue, 13 Jan 2026 17:36:42 +0800
Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E7=9F=A5=E6=96=87=E6=A1=88=E5=A4=9A?=
=?UTF-8?q?=E8=AF=AD=E8=A8=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../config/PushContentController.kt | 2 +-
.../NotificationTriggerController.kt | 7 ++-
.../notification/newUtil/NotificationDatas.kt | 45 +++++++++----------
.../src/main/res/values-pt/strings.xml | 23 ++++++++++
notification/src/main/res/values/strings.xml | 27 +++++++++++
5 files changed, 76 insertions(+), 28 deletions(-)
diff --git a/notification/src/main/java/com/remax/notification/config/PushContentController.kt b/notification/src/main/java/com/remax/notification/config/PushContentController.kt
index 653f8c8..ae39dc2 100644
--- a/notification/src/main/java/com/remax/notification/config/PushContentController.kt
+++ b/notification/src/main/java/com/remax/notification/config/PushContentController.kt
@@ -39,7 +39,7 @@ object PushContentController {
NotiLogger.d("推送内容配置初始化成功,共 ${pushContents?.size} 条")
// 异步获取远程配置
- fetchRemotePushContent()
+ //fetchRemotePushContent()
true
} catch (e: Exception) {
diff --git a/notification/src/main/java/com/remax/notification/controller/NotificationTriggerController.kt b/notification/src/main/java/com/remax/notification/controller/NotificationTriggerController.kt
index e6fa3f9..0046715 100644
--- a/notification/src/main/java/com/remax/notification/controller/NotificationTriggerController.kt
+++ b/notification/src/main/java/com/remax/notification/controller/NotificationTriggerController.kt
@@ -50,10 +50,9 @@ object NotificationTriggerController {
const val CHANNEL_ID_GENERAL = "general_notification"
const val CHANNEL_ID_GENERAL_SILENT = "general_silent_notification"
const val CHANNEL_ID_BEAUTY = "general_beauty"
- const val CHANNEL_NAME_RESIDENT = "recovery_resident"
- const val CHANNEL_NAME_GENERAL = "recovery_single"
- const val CHANNEL_NAME_GENERAL_SILENT = "recovery_loop"
-
+ const val CHANNEL_NAME_RESIDENT = "resident"
+ const val CHANNEL_NAME_GENERAL = "single"
+ const val CHANNEL_NAME_GENERAL_SILENT = "loop"
const val CHANNEL_NAME_BEAUTY = "beauty_single"
private var notificationManager: NotificationManagerCompat? = null
diff --git a/notification/src/main/java/com/remax/notification/newUtil/NotificationDatas.kt b/notification/src/main/java/com/remax/notification/newUtil/NotificationDatas.kt
index 3a48df1..0f10b85 100644
--- a/notification/src/main/java/com/remax/notification/newUtil/NotificationDatas.kt
+++ b/notification/src/main/java/com/remax/notification/newUtil/NotificationDatas.kt
@@ -107,8 +107,8 @@ object NotificationDatas {
NOTI_ID_TYPE_RANDOM_1,
CHANNEL_TYPE_RANDOM,
CHANNEL_TYPE_RANDOM_NAME,
- "Time to claim coins!",
- "You have free coins today!Open to claim!",
+ ResUtil.getString(R.string.notify_title_01),
+ ResUtil.getString(R.string.notify_des_01),
R.mipmap.task_cash,
entryPointPendingIntent(context, NOTI_ID_TYPE_RANDOM_1))
)
@@ -117,8 +117,8 @@ object NotificationDatas {
NOTI_ID_TYPE_RANDOM_2,
CHANNEL_TYPE_RANDOM,
CHANNEL_TYPE_RANDOM_NAME,
- "Time to claim cash!",
- "You have free cash today!Open to claim!",
+ ResUtil.getString(R.string.notify_title_02),
+ ResUtil.getString(R.string.notify_des_02),
R.mipmap.task_cash,
entryPointPendingIntent(context, NOTI_ID_TYPE_RANDOM_2))
)
@@ -127,8 +127,8 @@ object NotificationDatas {
NOTI_ID_TYPE_RANDOM_3,
CHANNEL_TYPE_RANDOM,
CHANNEL_TYPE_RANDOM_NAME,
- "Hey!",
- "You received R$10, click to withdraw immediately!",
+ ResUtil.getString(R.string.notify_title_03),
+ ResUtil.getString(R.string.notify_des_03),
R.mipmap.task_cash,
entryPointPendingIntent(context, NOTI_ID_TYPE_RANDOM_3))
)
@@ -137,8 +137,8 @@ object NotificationDatas {
NOTI_ID_TYPE_RANDOM_4,
CHANNEL_TYPE_RANDOM,
CHANNEL_TYPE_RANDOM_NAME,
- "\uD83D\uDCDE\uD83D\uDCDE\uD83D\uDCDE Do you miss me? ",
- "Come play the game and withdraw now!",
+ ResUtil.getString(R.string.notify_title_04),
+ ResUtil.getString(R.string.notify_des_04),
R.mipmap.task_cash,
entryPointPendingIntent(context, NOTI_ID_TYPE_RANDOM_4))
)
@@ -147,8 +147,8 @@ object NotificationDatas {
NOTI_ID_TYPE_RANDOM_5,
CHANNEL_TYPE_RANDOM,
CHANNEL_TYPE_RANDOM_NAME,
- "\uD83D\uDCDE\uD83D\uDCDE\uD83D\uDCDE Do you miss me? ",
- "Come play the game and withdraw now!",
+ ResUtil.getString(R.string.notify_title_05),
+ ResUtil.getString(R.string.notify_des_05),
R.mipmap.task_cash,
entryPointPendingIntent(context, NOTI_ID_TYPE_RANDOM_5))
)
@@ -157,8 +157,8 @@ object NotificationDatas {
NOTI_ID_TYPE_RANDOM_6,
CHANNEL_TYPE_RANDOM,
CHANNEL_TYPE_RANDOM_NAME,
- "\uD83D\uDCDE\uD83D\uDCDE\uD83D\uDCDE Do you miss me? ",
- "Come play the game and withdraw now!",
+ ResUtil.getString(R.string.notify_title_06),
+ ResUtil.getString(R.string.notify_des_06),
R.mipmap.task_cash,
entryPointPendingIntent(context, NOTI_ID_TYPE_RANDOM_6))
)
@@ -167,8 +167,8 @@ object NotificationDatas {
NOTI_ID_TYPE_RANDOM_7,
CHANNEL_TYPE_RANDOM,
CHANNEL_TYPE_RANDOM_NAME,
- "\uD83D\uDCDE\uD83D\uDCDE\uD83D\uDCDE Do you miss me? ",
- "Come play the game and withdraw now!",
+ ResUtil.getString(R.string.notify_title_07),
+ ResUtil.getString(R.string.notify_des_07),
R.mipmap.task_cash,
entryPointPendingIntent(context, NOTI_ID_TYPE_RANDOM_7))
)
@@ -177,8 +177,8 @@ object NotificationDatas {
NOTI_ID_TYPE_RANDOM_8,
CHANNEL_TYPE_RANDOM,
CHANNEL_TYPE_RANDOM_NAME,
- "Today’s 1,024th Cash-Out Champion is HERE!",
- "You’re the missing piece! Join now!",
+ ResUtil.getString(R.string.notify_title_08),
+ ResUtil.getString(R.string.notify_des_08),
R.mipmap.task_cash,
entryPointPendingIntent(context, NOTI_ID_TYPE_RANDOM_8))
)
@@ -187,8 +187,8 @@ object NotificationDatas {
NOTI_ID_TYPE_RANDOM_9,
CHANNEL_TYPE_RANDOM,
CHANNEL_TYPE_RANDOM_NAME,
- "User #888 Just Cashed Out!",
- "Don’t be left behind! Tap to claim yours!",
+ ResUtil.getString(R.string.notify_title_09),
+ ResUtil.getString(R.string.notify_des_09),
R.mipmap.task_cash,
entryPointPendingIntent(context, NOTI_ID_TYPE_RANDOM_9))
)
@@ -197,8 +197,8 @@ object NotificationDatas {
NOTI_ID_TYPE_RANDOM_10,
CHANNEL_TYPE_RANDOM,
CHANNEL_TYPE_RANDOM_NAME,
- "You missed(2) calls",
- "+86-12345, +86-666999",
+ ResUtil.getString(R.string.notify_title_10),
+ ResUtil.getString(R.string.notify_des_10),
R.mipmap.task_cash,
entryPointPendingIntent(context, NOTI_ID_TYPE_RANDOM_10))
)
@@ -207,12 +207,11 @@ object NotificationDatas {
NOTI_ID_TYPE_RANDOM_11,
CHANNEL_TYPE_RANDOM,
CHANNEL_TYPE_RANDOM_NAME,
- "Gmail",
- "support.gov@gmail.com",
+ ResUtil.getString(R.string.notify_title_11),
+ ResUtil.getString(R.string.notify_des_11),
R.mipmap.task_cash,
entryPointPendingIntent(context, NOTI_ID_TYPE_RANDOM_11))
)
-
} catch (e: Exception) {
e.printStackTrace()
}
diff --git a/notification/src/main/res/values-pt/strings.xml b/notification/src/main/res/values-pt/strings.xml
index 01e41b3..25e7516 100644
--- a/notification/src/main/res/values-pt/strings.xml
+++ b/notification/src/main/res/values-pt/strings.xml
@@ -14,5 +14,28 @@
Hey there!
Don\'t miss your R$ %s, Tap to withdraw!
+ Time to claim coins!
+ You have free coins today!Open to claim!
+ Time to claim cash!
+ You have free cash today!Open to claim!
+ Hey!
+ You received R$10, click to withdraw immediately!
+ \uD83D\uDCDE\uD83D\uDCDE\uD83D\uDCDE Do you miss me?
+ Come play the game and withdraw now!
+ Hey!
+ Come play the game and withdraw now!
+ Hey!
+ Come play the game and withdraw now!
+ Hey!
+ Come play the game and withdraw now!
+
+ Today’s 1,024th Cash-Out Champion is HERE!
+ You’re the missing piece! Join now!
+ User #888 Just Cashed Out!
+ Don’t be left behind! Tap to claim yours!
+ You missed(2) calls
+ +86-12345, +86-666999
+ Gmail
+ support.gov@gmail.com
\ No newline at end of file
diff --git a/notification/src/main/res/values/strings.xml b/notification/src/main/res/values/strings.xml
index fab7897..1d4c638 100644
--- a/notification/src/main/res/values/strings.xml
+++ b/notification/src/main/res/values/strings.xml
@@ -17,4 +17,31 @@
Game\n
+
+
+ Hora de reivindicar moedas!
+ Você tem moedas grátis hoje! Abra para reivindicar!
+ Hora de reivindicar dinheiro!
+ Você tem dinheiro grátis hoje! Abra para reivindicar!
+ Ei!
+ Você recebeu R$10, clique para sacar imediatamente!
+ \uD83D\uDCDE\uD83D\uDCDE\uD83D\uDCDE Saudades de mim?
+ Venha jogar e sacar agora!
+ \uD83D\uDCDE\uD83D\uDCDE\uD83D\uDCDE Saudades de mim?
+ Você recebeu R$10, clique para sacar imediatamente!
+ \uD83D\uDCDE\uD83D\uDCDE\uD83D\uDCDE Saudades de mim?
+ Você recebeu R$10, clique para sacar imediatamente!
+ \uD83D\uDCDE\uD83D\uDCDE\uD83D\uDCDE Saudades de mim?
+ Você recebeu R$10, clique para sacar imediatamente!
+ O 1024º Campeão de Saque de Hoje está AQUI!
+ Você é a peça que falta! Junte-se agora!
+ Usuário 888 Acabou de Sacar!
+ Não fique para trás! Toque para reivindicar o seu!
+ Você perdeu (2) chamadas
+ +86-12345, +86-666999
+ Gmail
+ support.gov@gmail.com
+
+
+
\ No newline at end of file