|
@@ -42,7 +42,6 @@ import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.text.ParseException;
|
|
|
-import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
import java.util.concurrent.CountDownLatch;
|
|
|
import java.util.concurrent.ExecutorService;
|
|
@@ -111,26 +110,16 @@ public class SampleTest {
|
|
|
|
|
|
@Test
|
|
|
public void loadKuaishouCookie() throws ParseException {
|
|
|
- List<Long> accList = new ArrayList<>();
|
|
|
- accList.add(11789495L);
|
|
|
- accList.add(11574866L);
|
|
|
- for (int i = 0; i < accList.size(); i++) {
|
|
|
- Long aLong = accList.get(i);
|
|
|
- CtopOauthToken token = tokenService.getTokenByAccountId(aLong);
|
|
|
- SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
- Date parse = simpleDateFormat.parse("2021-12-17");
|
|
|
- Date parse1 = simpleDateFormat.parse("2021-12-23");
|
|
|
|
|
|
+ CtopOauthToken tokenByAccountId = tokenService.getTokenByAccountId(13972744L);
|
|
|
|
|
|
- kuaishouInterfaceService.getAdvertiserReportDaily(token, parse, parse1, null);
|
|
|
- kuaiShouReportDailyMaterialService.getMaterialReportByAccountIdAndStatDate(token.getAccountId(), token.getAccessToken(), "2021-12-17", "2021-12-23", "DAILY", 1);
|
|
|
+ JSONObject deepConversionJson = iKuaishouInterfaceService.getDeepConversionInfosV2(13972744L, tokenByAccountId.getAccessToken(), 2, null);
|
|
|
|
|
|
-
|
|
|
- }
|
|
|
+ System.err.println(deepConversionJson);
|
|
|
|
|
|
|
|
|
- // sendMessageService.sendMessage("d2331a00e1be42ec8542167e321eeb01", "测试消息");
|
|
|
- }
|
|
|
+ // sendMessageService.sendMessage("d2331a00e1be42ec8542167e321eeb01", "测试消息");
|
|
|
+}
|
|
|
|
|
|
|
|
|
@Test
|