|
@@ -100,6 +100,7 @@ public class TestController {
|
|
list.add(7421671L);
|
|
list.add(7421671L);
|
|
list.add(7421646L);
|
|
list.add(7421646L);
|
|
list.add(7421646L);
|
|
list.add(7421646L);
|
|
|
|
+ list.add(7607849L);
|
|
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);
|
|
@@ -126,6 +127,7 @@ public class TestController {
|
|
list.add(7421671L);
|
|
list.add(7421671L);
|
|
list.add(7421646L);
|
|
list.add(7421646L);
|
|
list.add(7421646L);
|
|
list.add(7421646L);
|
|
|
|
+ list.add(7607849L);
|
|
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);
|
|
@@ -282,6 +284,7 @@ public class TestController {
|
|
list.add(7421671L);
|
|
list.add(7421671L);
|
|
list.add(7421646L);
|
|
list.add(7421646L);
|
|
list.add(7421646L);
|
|
list.add(7421646L);
|
|
|
|
+ list.add(7607849L);
|
|
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);
|
|
@@ -294,12 +297,12 @@ public class TestController {
|
|
QueryWrapper<KuaiShouCreative> creativeQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<KuaiShouCreative> creativeQueryWrapper = new QueryWrapper<>();
|
|
creativeQueryWrapper.eq("account_id", accountId);
|
|
creativeQueryWrapper.eq("account_id", accountId);
|
|
creativeQueryWrapper.eq("campaign_id", campaign.getCampaignId());
|
|
creativeQueryWrapper.eq("campaign_id", campaign.getCampaignId());
|
|
- creativeQueryWrapper.notLike("click_track_url", "&ua=__UA__&oaid=__OAID__");
|
|
|
|
|
|
+ // creativeQueryWrapper.notLike("click_track_url", "&ua=__UA__&oaid=__OAID__");
|
|
List<KuaiShouCreative> creativeList = creativeService.list(creativeQueryWrapper);
|
|
List<KuaiShouCreative> creativeList = creativeService.list(creativeQueryWrapper);
|
|
for (KuaiShouCreative creative : creativeList) {
|
|
for (KuaiShouCreative creative : creativeList) {
|
|
- /*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("creativeId", creative.getCreativeId());
|
|
json.put("creativeId", creative.getCreativeId());
|
|
@@ -315,10 +318,10 @@ public class TestController {
|
|
}
|
|
}
|
|
if (b.contains("&pass_through")) {
|
|
if (b.contains("&pass_through")) {
|
|
String[] split = b.split("&pass_through");
|
|
String[] split = b.split("&pass_through");
|
|
- a = split[0] + "&ua=__UA__&oaid=__OAID__" + "&pass_through" + split[1];
|
|
|
|
|
|
+ a = split[0] + "&csite=__CSITE__" + "&pass_through" + split[1];
|
|
|
|
|
|
} else {
|
|
} else {
|
|
- a = b + "&ua=__UA__&oaid=__OAID__";
|
|
|
|
|
|
+ a = b + "&csite=__CSITE__";
|
|
}
|
|
}
|
|
if (creative.getCreativeMaterialType() == 1) {
|
|
if (creative.getCreativeMaterialType() == 1) {
|
|
json.put("clickTrackUrl", a);
|
|
json.put("clickTrackUrl", a);
|
|
@@ -332,8 +335,8 @@ public class TestController {
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
}
|
|
}
|
|
- /*}
|
|
|
|
- });*/
|
|
|
|
|
|
+ }
|
|
|
|
+ });
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -358,6 +361,7 @@ public class TestController {
|
|
list.add(7421671L);
|
|
list.add(7421671L);
|
|
list.add(7421646L);
|
|
list.add(7421646L);
|
|
list.add(7421646L);
|
|
list.add(7421646L);
|
|
|
|
+ list.add(7607849L);
|
|
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);
|