yumeng 4 年 前
コミット
b5286524a9

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

@@ -110,14 +110,14 @@ public class TestController {
         list.add(7882996L);
         list.add(7883032L);
         list.add(7922257L);*/
-        list.add(8166349L);
-        list.add(8159827L);
+        list.add(8206288L);
+     //   list.add(8159827L);
 
         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);
         }
 
     }
@@ -150,8 +150,8 @@ public class TestController {
         list.add(7883032L);
         list.add(7922257L);*/
 
-        list.add(8166349L);
-        list.add(8159827L);
+      //  list.add(8166349L);
+        list.add(8206288L);
 
 
         for (int i = 0; i < list.size(); i++) {
@@ -181,13 +181,13 @@ public class TestController {
     @GetMapping(value = "/updateUnit")
     public void updateUnit() throws Exception {
         List<Long> list = new ArrayList();
-        list.add(7421660L);
+        list.add(8206288L);
         for (int i = 0; i < list.size(); i++) {
             Long accountId = list.get(i);
             CtopOauthToken oauthToken = oauthTokenService.getTokenByAccountId(accountId);
             QueryWrapper<KuaiShouGroup> groupQueryWrapper = new QueryWrapper<>();
             groupQueryWrapper.eq("account_id", accountId);
-            groupQueryWrapper.eq("use_app_market", 1);
+       //     groupQueryWrapper.eq("use_app_market", 1);
 
 
             List<KuaiShouGroup> list1 = groupService.list(groupQueryWrapper);
@@ -202,21 +202,21 @@ public class TestController {
 
 
             for (KuaiShouGroup group : list1) {
-                executorService.submit(new Runnable() {
+             /*   executorService.submit(new Runnable() {
                     @Override
-                    public void run() {
+                    public void run() {*/
                         try {
                             JSONObject json = new JSONObject();
                             json.put("unitId", group.getUnitId());
-                            json.put("useAppMarket", 0);
-                            json.put("appStore", new JSONArray());
+                            json.put("cpaBid", 8500);
+                            json.put("deepConversionBid", 21270);
                             batchService.updateUnit(json, oauthToken);
                             Thread.sleep(1000);
                         } catch (Exception e) {
                             e.printStackTrace();
                         }
-                    }
-                });
+                    /*}
+                });*/
 
 
             }