|
@@ -3,11 +3,10 @@ package org.jeecg;
|
|
import cn.com.ctop.common.module.entity.BindAccountLogin;
|
|
import cn.com.ctop.common.module.entity.BindAccountLogin;
|
|
import cn.com.ctop.common.module.entity.CtopOauthToken;
|
|
import cn.com.ctop.common.module.entity.CtopOauthToken;
|
|
import cn.com.ctop.common.module.entity.OauthAgentToken;
|
|
import cn.com.ctop.common.module.entity.OauthAgentToken;
|
|
-import cn.com.ctop.common.module.service.IBindAccountLoginService;
|
|
|
|
-import cn.com.ctop.common.module.service.ICtopOauthTokenService;
|
|
|
|
-import cn.com.ctop.common.module.service.IOauthAgentTokenService;
|
|
|
|
-import cn.com.ctop.common.module.service.ISendMessageService;
|
|
|
|
|
|
+import cn.com.ctop.common.module.mapper.MailLogMapper;
|
|
|
|
+import cn.com.ctop.common.module.service.*;
|
|
import cn.com.ctop.common.module.utils.Check;
|
|
import cn.com.ctop.common.module.utils.Check;
|
|
|
|
+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.ai.entity.AiKuaishouUnitLevelOperationRecord;
|
|
import cn.com.ctop.kuaishou.modules.ai.entity.AiKuaishouUnitLevelOperationRecord;
|
|
import cn.com.ctop.kuaishou.modules.ai.mapper.AiKuaishouUnitLevelOperationRecordMapper;
|
|
import cn.com.ctop.kuaishou.modules.ai.mapper.AiKuaishouUnitLevelOperationRecordMapper;
|
|
@@ -111,10 +110,30 @@ public class SampleTest {
|
|
private IOauthAgentTokenService agentTokenService;
|
|
private IOauthAgentTokenService agentTokenService;
|
|
@Autowired
|
|
@Autowired
|
|
private KuaiShouDailyAgentMapper agentMapper;
|
|
private KuaiShouDailyAgentMapper agentMapper;
|
|
-
|
|
|
|
|
|
+ @Autowired
|
|
|
|
+ private MailLogMapper mailLogMapper;
|
|
|
|
+ @Autowired
|
|
|
|
+ private IProjectService projectService;
|
|
|
|
+ @Autowired
|
|
|
|
+ private CorpWexinUtils corpWexinUtils;
|
|
@Test
|
|
@Test
|
|
public void loadKuaishouCookie() throws ParseException {
|
|
public void loadKuaishouCookie() throws ParseException {
|
|
- List<Long> appList = new ArrayList<>();
|
|
|
|
|
|
+ // sendMessageService.sendMessage("461857c245f54ba5813bcb5900a23092","Test");
|
|
|
|
+
|
|
|
|
+ StringBuilder text = new StringBuilder();
|
|
|
|
+ text.append("较昨日同时段消耗预警").append("<br/>")
|
|
|
|
+ .append("您的项目:" + "测试" + "下的,").append("<br/>")
|
|
|
|
+ .append("账号:").append(1768734101677063L + ",").append("授权名称为:" + "新拍掌柜-汇创-1户").append("<br/>")
|
|
|
|
+ .append("账户所属人:" + "苏爽").append("<br/>")
|
|
|
|
+ .append("相较于昨日 " + 18 + "时").append("<br/>")
|
|
|
|
+ .append("出现消耗暴涨,").append("消耗金额为:" + 10000).append("<br/>")
|
|
|
|
+ .append("请您及时查看!");
|
|
|
|
+ List<JSONObject> wexinIds = mailLogMapper.selectBytaDanceWeiXinIdListByAccountId(1768734101677063L);
|
|
|
|
+ corpWexinUtils.sendMessage(wexinIds, text.toString());
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /* List<Long> appList = new ArrayList<>();
|
|
appList.add(27L);
|
|
appList.add(27L);
|
|
appList.add(165893351L);
|
|
appList.add(165893351L);
|
|
for (int i = 0; i < appList.size(); i++) {
|
|
for (int i = 0; i < appList.size(); i++) {
|
|
@@ -122,7 +141,7 @@ public class SampleTest {
|
|
OauthAgentToken agentToken = agentTokenService.getTokenByAppId(appId);
|
|
OauthAgentToken agentToken = agentTokenService.getTokenByAppId(appId);
|
|
System.err.println(agentToken);
|
|
System.err.println(agentToken);
|
|
// getAgentReport(agentToken.getAccessToken(), agentToken.getAgentId(), startDate, endDate, 1);
|
|
// getAgentReport(agentToken.getAccessToken(), agentToken.getAgentId(), startDate, endDate, 1);
|
|
- }
|
|
|
|
|
|
+ }*/
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|