yumeng 2 lat temu
rodzic
commit
8abafc7763

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

@@ -31,6 +31,8 @@ import org.springframework.web.bind.annotation.RequestMapping;
 import org.springframework.web.bind.annotation.RestController;
 
 import javax.annotation.Resource;
+import java.io.UnsupportedEncodingException;
+import java.net.URLDecoder;
 import java.util.ArrayList;
 import java.util.HashMap;
 import java.util.List;
@@ -202,14 +204,19 @@ public class TestController {
 
     }
 
+    public static void main(String[] args) throws UnsupportedEncodingException {
+        String decode = URLDecoder.decode("hJrdWFpc2hvdS5zaG9wLmIuc3QSkAGKwcVSG", "utf-8");
+        System.err.println(decode);
+    }
+
+
 
     @GetMapping(value = "/unitList")
     public void unitList() {
         List<Long> accountList = new ArrayList<>();
         accountList.add(13595231L);
-
-
-
+        accountList.add(13469838L);
+        accountList.add(13595243L);
         for (int i = 0; i < accountList.size(); i++) {
             Long aLong = accountList.get(i);
             CtopOauthToken oauthToken = oauthTokenService.getTokenByAccountId(aLong);

+ 7 - 3
jeecg-boot-module-system/src/test/java/org/jeecg/SampleTest.java

@@ -42,6 +42,7 @@ 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;
@@ -150,9 +151,12 @@ public class SampleTest {
 
 
     @Test
-    public void loadBytedanceVideoReportData() {
-        CtopOauthToken token = tokenService.getTokenByAccountId(1696831659659278L);
-        advertiserDataService.getMaterialList(token);
+    public void loadBytedanceVideoReportData() throws ParseException {
+        CtopOauthToken token = tokenService.getTokenByAccountId(10494968L);
+        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
+        String date= "2022-08-03" ;
+        Date parse = simpleDateFormat.parse(date);
+        iKuaishouInterfaceService.getCampaignList(token,parse,parse);
     }