|
@@ -8,6 +8,7 @@ import cn.com.ctop.common.module.entity.CtopOauthToken;
|
|
|
import cn.com.ctop.common.module.entity.UserAllocation;
|
|
import cn.com.ctop.common.module.entity.UserAllocation;
|
|
|
import cn.com.ctop.common.module.message.handle.impl.EmailSendMsgHandle;
|
|
import cn.com.ctop.common.module.message.handle.impl.EmailSendMsgHandle;
|
|
|
import cn.com.ctop.common.module.service.*;
|
|
import cn.com.ctop.common.module.service.*;
|
|
|
|
|
+import cn.com.ctop.common.module.utils.CorpWexinUtils;
|
|
|
import cn.com.ctop.common.module.utils.CtopAdConstant;
|
|
import cn.com.ctop.common.module.utils.CtopAdConstant;
|
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouHistoryReportTaskService;
|
|
import cn.com.ctop.kuaishou.modules.batch.service.IKuaiShouHistoryReportTaskService;
|
|
|
import cn.com.ctop.kuaishou.modules.graphql.service.IKuaishouWebInterfaceService;
|
|
import cn.com.ctop.kuaishou.modules.graphql.service.IKuaishouWebInterfaceService;
|
|
@@ -55,13 +56,7 @@ public class SampleTest {
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|
|
|
public void loadBytedanceCreativeData() {
|
|
public void loadBytedanceCreativeData() {
|
|
|
- QueryWrapper<CtopOauthToken> queryWrapper = new QueryWrapper<>();
|
|
|
|
|
- queryWrapper.eq("media_id", 2);
|
|
|
|
|
- List<CtopOauthToken> list = oauthTokenService.list(queryWrapper);
|
|
|
|
|
- for (CtopOauthToken token : list) {
|
|
|
|
|
- kuaiShouHistoryReportTaskService.createTask(token.getAccountId(), token.getAccessToken(), "2020-09-20", "2020-09-20", "daily");
|
|
|
|
|
-
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ CorpWexinUtils.sendMessageByWeChatId("ZhaoWang","测试企业微信发送消息");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Test
|
|
@Test
|