From 4c7cde7ae5ed57335405459e47de4bbd2726c4ba Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期六, 07 五月 2022 19:43:39 +0800
Subject: [PATCH] 功能完善

---
 android/app/src/main/java/com/yeshi/makemoney/video/app/utils/SettingUtil.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/android/app/src/main/java/com/yeshi/makemoney/video/app/utils/SettingUtil.java b/android/app/src/main/java/com/yeshi/makemoney/video/app/utils/SettingUtil.java
index 6033f52..446fae6 100644
--- a/android/app/src/main/java/com/yeshi/makemoney/video/app/utils/SettingUtil.java
+++ b/android/app/src/main/java/com/yeshi/makemoney/video/app/utils/SettingUtil.java
@@ -12,6 +12,8 @@
 public class SettingUtil {
 
     public enum SettingKey {
+        //鏄惁鏄剧ず璧勮椤甸潰鐨勬彁閱�
+        showNewsNotify(true),
         //鎺ㄩ�佸厤鎵撴壈
         pushUnDisturb(false),
         //骞垮憡鎺ㄨ崘
@@ -54,9 +56,9 @@
             DPUpdate.setPersonalRec(value);
         } else if (key == SettingKey.pushUnDisturb) {
             if (value) {
-                JPushInterface.setSilenceTime(context, 21, 0, 9, 0);
+                JPushInterface.setPushTime(context, null, 9, 21);
             } else {
-                JPushInterface.setSilenceTime(context, 0, 0, 0, 1);
+                JPushInterface.setPushTime(context, null, 0, 23);
             }
         }
 

--
Gitblit v1.8.0