|
@@ -80,12 +80,10 @@ public class TestController {
|
|
static ExecutorService suzhaoService = Executors.newFixedThreadPool(5);
|
|
static ExecutorService suzhaoService = Executors.newFixedThreadPool(5);
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
-
|
|
|
|
@GetMapping(value = "/campaignList")
|
|
@GetMapping(value = "/campaignList")
|
|
public void campaignList() {
|
|
public void campaignList() {
|
|
List<Long> list = new ArrayList();
|
|
List<Long> list = new ArrayList();
|
|
- list.add(6828954L);
|
|
|
|
|
|
+ list.add(7087866L);
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < list.size(); i++) {
|
|
for (int i = 0; i < list.size(); i++) {
|
|
@@ -100,7 +98,7 @@ public class TestController {
|
|
@GetMapping(value = "/creativeList")
|
|
@GetMapping(value = "/creativeList")
|
|
public void creativeList() {
|
|
public void creativeList() {
|
|
List<Long> list = new ArrayList();
|
|
List<Long> list = new ArrayList();
|
|
- list.add(6828954L);
|
|
|
|
|
|
+ list.add(7087866L);
|
|
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,23 +124,22 @@ public class TestController {
|
|
@GetMapping(value = "/updateCreative")
|
|
@GetMapping(value = "/updateCreative")
|
|
public void updateCreative() {
|
|
public void updateCreative() {
|
|
List<Long> list = new ArrayList();
|
|
List<Long> list = new ArrayList();
|
|
- list.add(6828954L);
|
|
|
|
|
|
+ list.add(7087866L);
|
|
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);
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
JSONObject json = new JSONObject();
|
|
JSONObject json = new JSONObject();
|
|
- String clickTrackUrl = null;
|
|
|
|
|
|
+ /*String clickTrackUrl = null;
|
|
if (accountId == 6828954L) {
|
|
if (accountId == 6828954L) {
|
|
clickTrackUrl = "https://uri6.com/tkio/yQ7VZva?imei=__IMEI2__&androidid=__ANDROIDID2__&oaid=__OAID__&mac=__MAC__&ip=__IP__&ry_adcreative_id=__CID__&ry_adplan_id=__DID__&ry_adplan_name=__DNAME__&ry_adgroup_id=__AID__&callback=__CALLBACK__&kscsite=__CSITE__&noredirect=true";
|
|
clickTrackUrl = "https://uri6.com/tkio/yQ7VZva?imei=__IMEI2__&androidid=__ANDROIDID2__&oaid=__OAID__&mac=__MAC__&ip=__IP__&ry_adcreative_id=__CID__&ry_adplan_id=__DID__&ry_adplan_name=__DNAME__&ry_adgroup_id=__AID__&callback=__CALLBACK__&kscsite=__CSITE__&noredirect=true";
|
|
- }
|
|
|
|
- json.put("clickTrackUrl", clickTrackUrl);
|
|
|
|
|
|
+ }*/
|
|
|
|
+ // json.put("clickTrackUrl", clickTrackUrl);
|
|
|
|
|
|
CtopOauthToken oauthToken = oauthTokenService.getTokenByAccountId(accountId);
|
|
CtopOauthToken oauthToken = oauthTokenService.getTokenByAccountId(accountId);
|
|
QueryWrapper<KuaiShouCreative> creativeQueryWrapper = new QueryWrapper<>();
|
|
QueryWrapper<KuaiShouCreative> creativeQueryWrapper = new QueryWrapper<>();
|
|
creativeQueryWrapper.eq("account_id", accountId);
|
|
creativeQueryWrapper.eq("account_id", accountId);
|
|
- creativeQueryWrapper.eq("click_track_url", "https://vdd.qq.com/aid/kuaishou_click_detail?app=tenvideo&imeimd5=__IMEI2__&idfamd5=__IDFA2__&androidid=__ANDROIDID2__&callback_url=__CALLBACK__&campaign_id=__DID__&adgroup_id=__AID__&creative_id=__CID__&account_id=3727345×tamp=__TS__");
|
|
|
|
|
|
+ // creativeQueryWrapper.eq("click_track_url", "https://vdd.qq.com/aid/kuaishou_click_detail?app=tenvideo&imeimd5=__IMEI2__&idfamd5=__IDFA2__&androidid=__ANDROIDID2__&callback_url=__CALLBACK__&campaign_id=__DID__&adgroup_id=__AID__&creative_id=__CID__&account_id=3727345×tamp=__TS__");
|
|
|
|
|
|
/* if (accountId == 3727345L) {
|
|
/* if (accountId == 3727345L) {
|
|
creativeQueryWrapper.eq("click_track_url", "https://vdd.qq.com/aid/kuaishou_click_detail?app=tenvideo&imeimd5=__IMEI2__&idfamd5=__IDFA2__&androidid=__ANDROIDID2__&callback_url=__CALLBACK__&campaign_id=__DID__&adgroup_id=__AID__&creative_id=__CID__&account_id=3727345×tamp=__TS__");
|
|
creativeQueryWrapper.eq("click_track_url", "https://vdd.qq.com/aid/kuaishou_click_detail?app=tenvideo&imeimd5=__IMEI2__&idfamd5=__IDFA2__&androidid=__ANDROIDID2__&callback_url=__CALLBACK__&campaign_id=__DID__&adgroup_id=__AID__&creative_id=__CID__&account_id=3727345×tamp=__TS__");
|
|
@@ -160,6 +157,7 @@ public class TestController {
|
|
public void run() {
|
|
public void run() {
|
|
try {
|
|
try {
|
|
json.put("creativeId", creative.getCreativeId());
|
|
json.put("creativeId", creative.getCreativeId());
|
|
|
|
+ json.put("clickTrackUrl", creative.getClickTrackUrl().replace("token=Fg9d", "token=bMw"));
|
|
batchService.updateCreative(json, oauthToken);
|
|
batchService.updateCreative(json, oauthToken);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|