yumeng 4 lat temu
rodzic
commit
89cff7f710

+ 43 - 9
jeecg-boot-module-system/src/main/java/org/jeecg/modules/ctop/controller/TestController.java

@@ -79,7 +79,7 @@ public class TestController {
 
     @Autowired
     private IBatchService batchService;
-    static ExecutorService executorService = Executors.newFixedThreadPool(20);
+    static ExecutorService executorService = Executors.newFixedThreadPool(40);
     static ExecutorService videoService = Executors.newFixedThreadPool(5);
     static ExecutorService suzhaoService = Executors.newFixedThreadPool(5);
 
@@ -109,20 +109,22 @@ public class TestController {
         list.add(7882996L);
         list.add(7883032L);
         list.add(7922257L);*/
-        list.add(9538319L);
+/*        list.add(9538319L);
         list.add(9643738L);
         list.add(9664230L);
         list.add(9643754L);
         list.add(9538300L);
-        list.add(9643726L);
-        //  list.add(9556344L);
+        list.add(9643726L);*/
+
+
+        list.add(9845239L);
 
 
         for (int i = 0; i < list.size(); i++) {
             Long accountId = list.get(i);
             CtopOauthToken oauthToken = oauthTokenService.getTokenByAccountId(accountId);
-            kuaishouInterfaceService.getCampaignList(oauthToken, null, null);
-            //   kuaishouInterfaceService.getGroupList(oauthToken, null, null);
+            //  kuaishouInterfaceService.getCampaignList(oauthToken, null, null);
+            kuaishouInterfaceService.getGroupList(oauthToken, null, null);
         }
 
     }
@@ -167,7 +169,38 @@ public class TestController {
     @GetMapping(value = "/updateUnit")
     public void updateUnit() throws Exception {
         List<Long> list = new ArrayList();
-        list.add(9556344L);
+       /* list.add(9556344L);
+        list.add(9743738L);
+        list.add(9743727L);
+        list.add(9812671L);
+        list.add(9838554L);
+        list.add(9743746L);
+        list.add(9767055L);
+        list.add(9556274L);
+        list.add(9767096L);
+        list.add(9792538L);
+        list.add(9766952L);
+        list.add(9677440L);
+        list.add(9677334L);
+        list.add(9556465L);
+        list.add(9677236L);
+        list.add(9556227L);
+        list.add(9556188L);
+        list.add(9556431L);
+        list.add(9677408L);
+        list.add(9677284L);
+        list.add(9677304L);
+        list.add(9677344L);
+        list.add(9812668L);
+        list.add(9774008L);
+        list.add(9767003L);
+        list.add(9792526L);
+        list.add(9774099L);
+        list.add(9743751L);
+        list.add(9743701L);
+        list.add(9743804L);
+        list.add(9743691L);*/
+        list.add(9845239L);
         for (int i = 0; i < list.size(); i++) {
             Long accountId = list.get(i);
             CtopOauthToken oauthToken = oauthTokenService.getTokenByAccountId(accountId);
@@ -175,6 +208,7 @@ public class TestController {
             groupQueryWrapper.eq("account_id", accountId);
             //      groupQueryWrapper.ne("schedule_time","000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111000000111111111111111111");
             //     groupQueryWrapper.eq("use_app_market", 1);
+        //    groupQueryWrapper.gt("cpa_bid", 20000);
 
 
             List<KuaiShouGroup> list1 = groupService.list(groupQueryWrapper);
@@ -195,10 +229,10 @@ public class TestController {
                         try {
                             JSONObject json = new JSONObject();
                             json.put("unitId", group.getUnitId());
-                            json.put("cpaBid", 23 * 1000);
+                            json.put("cpaBid", 63 * 1000);
                             //     json.put("gender", "2");
                             batchService.updateUnit(json, oauthToken);
-                            Thread.sleep(1000);
+                            Thread.sleep(1500);
                         } catch (Exception e) {
                             e.printStackTrace();
                         }

+ 1 - 1
jeecg-boot-module-system/src/main/resources/application-dev.yml

@@ -1,5 +1,5 @@
 server:
-  port: 8080
+  port: 8081
   ip: 39.106.184.70
   servlet:
     context-path: /jeecg-boot