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