From 2ec42a5aacea35d2918f0e17f07685cf5b4d25c8 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期二, 12 五月 2020 20:20:41 +0800
Subject: [PATCH] 包名引用路径更改

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/push/OPPOPushServiceImpl.java |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/OPPOPushServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/OPPOPushServiceImpl.java
index d31cd66..f6e63b8 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/OPPOPushServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/OPPOPushServiceImpl.java
@@ -15,7 +15,6 @@
 import com.yeshi.fanli.entity.AppVersionInfo;
 import com.yeshi.fanli.entity.bus.user.UserCustomSettings;
 import com.yeshi.fanli.entity.bus.user.UserCustomSettings.UserSettingTypeEnum;
-import com.yeshi.fanli.entity.push.DeviceTokenHW;
 import com.yeshi.fanli.entity.push.DeviceTokenOPPO;
 import com.yeshi.fanli.exception.push.PushException;
 import com.yeshi.fanli.log.PushLogHelper;
@@ -24,7 +23,6 @@
 import com.yeshi.fanli.service.inter.push.OPPOPushService;
 import com.yeshi.fanli.service.inter.user.UserCustomSettingsService;
 import com.yeshi.fanli.util.StringUtil;
-import com.yeshi.fanli.util.push.HWPushUtil;
 import com.yeshi.fanli.util.push.OPPOPushUtil;
 
 @Service
@@ -42,7 +40,7 @@
 	private List<Integer> getVersionCodeList(List<Integer> versionCodeList) {
 		List<Integer> versionList = new ArrayList<>();
 		if (versionCodeList == null) {// 鍏ㄦ帹
-			List<AppVersionInfo> appInfoList = appVersionService.listByPlatformAndMinVersionCode("android", 49);
+			List<AppVersionInfo> appInfoList = appVersionService.listByPlatformAndMinVersionCode("android", 51);
 			if (appInfoList != null)
 				for (AppVersionInfo version : appInfoList) {
 					versionList.add(version.getVersionCode());
@@ -50,7 +48,7 @@
 
 		} else {// 鎸夌増鏈帹閫�
 			for (Integer versionCode : versionCodeList) {
-				if (versionCode.intValue() >= 49) {// 2.0.1寮�濮嬫敮鎸�
+				if (versionCode.intValue() >= 51) {// 2.0.1寮�濮嬫敮鎸�
 					versionList.add(versionCode);
 				}
 			}
@@ -107,6 +105,11 @@
 	}
 
 	private List<DeviceTokenOPPO> filterDeviceToken(List<DeviceTokenOPPO> deviceList, int hour) {
+
+		// TODO 娑堟伅鍏嶆墦鎵板叧闂�
+		if (1 > 0)
+			return deviceList;
+
 		// 澶勭悊娑堟伅鍏嶆墦鎵�
 		if (hour >= 20 || hour < 8) {
 			Set<Long> uidSets = new HashSet<>();

--
Gitblit v1.8.0