From 651f2856e9ae10aacbfb8327d967aacbb6d58333 Mon Sep 17 00:00:00 2001
From: admin <weikou2014>
Date: 星期三, 12 四月 2023 18:13:58 +0800
Subject: [PATCH] 大淘客API修复/唯品会订单爬取策略修改

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java |   22 ++++++----------------
 1 files changed, 6 insertions(+), 16 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java
index 8c15b59..5448968 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/push/PushServiceImpl.java
@@ -116,7 +116,7 @@
                 // 闄愬埗鎺ㄩ�佺増鏈彿锛�0
                 String codes = getEffectiveVersionCodes(0, AppVersionInfo.PLATFORM_IOS, listIOS, system);
                 if (listIOS == null || (listIOS.size() > 0 && codes != null && codes.trim().length() > 0)) {
-                    iosPushService.pushGoods(uid, Long.parseLong(gid), title, content, codes, system);
+                    iosPushService.pushGoods(uid, gid, title, content, codes, system);
                 }
             }
 
@@ -125,14 +125,14 @@
                 // 闄愬埗鎺ㄩ�佺増鏈彿锛�0
                 String versions = getEffectiveVersions(0, AppVersionInfo.PLATFORM_ANDROID, listAndroid, system);
                 if (listAndroid == null || (listAndroid.size() > 0 && versions != null && versions.trim().length() > 0)) {
-                    xmPushService.pushGoods(uid, Long.parseLong(gid), title, content, versions, system);
+                    xmPushService.pushGoods(uid, gid, title, content, versions, system);
                 }
                 // 鍗庝负鎺ㄩ��
                 if (listAndroid == null || listAndroid.size() > 0) {
                     List<Integer> versionCodeList = null;
                     if (listAndroid != null)
                         versionCodeList = appVersionService.listVersionCodeByVersions("android", listAndroid, system);
-                    hwPushService.pushGoods(uid, Long.parseLong(gid), new PushBaseContent(title, content, versionCodeList, system));
+                    hwPushService.pushGoods(uid, gid, new PushBaseContent(title, content, versionCodeList, system));
                 }
 
                 // OPPO鎺ㄩ��
@@ -140,14 +140,14 @@
                     List<Integer> versionCodeList = null;
                     if (listAndroid != null)
                         versionCodeList = appVersionService.listVersionCodeByVersions("android", listAndroid, system);
-                    oPPOPushService.pushGoods(uid, Long.parseLong(gid), new PushBaseContent(title, content, versionCodeList, system));
+                    oPPOPushService.pushGoods(uid, gid, new PushBaseContent(title, content, versionCodeList, system));
                 }
                 // VIVO鎺ㄩ��
                 if (listAndroid == null || listAndroid.size() > 0) {
                     List<Integer> versionCodeList = null;
                     if (listAndroid != null)
                         versionCodeList = appVersionService.listVersionCodeByVersions("android", listAndroid, system);
-                    vIVOPushService.pushGoods(uid, Long.parseLong(gid), new PushBaseContent(title, content, versionCodeList, system));
+                    vIVOPushService.pushGoods(uid, gid, new PushBaseContent(title, content, versionCodeList, system));
                 }
             }
         }
@@ -701,18 +701,8 @@
 
         logger.debug("鏂扮増鎺ㄩ�佸紑濮嬶細title-{} content-{}", new Object[]{title, content});
         //鐏板害娴嬭瘯
-        if (uidList == null || uidList.size() == 0 || uidList.size() > 1)
-            return;
-        Set<Long> uidSet = new HashSet<>();
-        uidSet.add(6857703L);
-        uidSet.add(6845887L);
-
-//      鍙栨秷鐏板害娴嬭瘯
-//        if (!uidSet.contains(uidList.get(0))) {
+//        if (uidList == null || uidList.size() == 0 || uidList.size() > 1)
 //            return;
-//      }
-
-        logger.debug("鏂扮増鎺ㄩ�佸紑濮嬶細title-{} content-{}", new Object[]{title, content});
 
 
         BPushFilter filter = new BPushFilter();

--
Gitblit v1.8.0