|
@@ -3,6 +3,7 @@ package org.jeecg.modules.bytedance.advertise.service.impl;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.modules.bytedance.advertise.dockapi.MarketingService;
|
|
@@ -30,6 +31,7 @@ import java.util.Set;
|
|
|
* @version V1.0
|
|
|
* @date 2020-11-16
|
|
|
*/
|
|
|
+@Slf4j
|
|
|
@Service
|
|
|
public class MonitorBytedanceServiceImpl implements IMonitorBytedanceService {
|
|
|
@Resource
|
|
@@ -187,12 +189,15 @@ public class MonitorBytedanceServiceImpl implements IMonitorBytedanceService {
|
|
|
//关停计划
|
|
|
CtopOauthToken token = tokenService.getTokenByAccountId(Long.valueOf(accountInfo.getAccountId()));
|
|
|
marketingServiceImpl.updPlanStatus(token, Arrays.asList(Long.valueOf(actiontrackUrl.getPlanId())),"disable");
|
|
|
+ log.info("accountId:=={}==计划id:{}=====第三方点击监测链接不一致,计划已【关停】============",accountInfo.getAccountId(),actiontrackUrl.getPlanId());
|
|
|
//发送预警消息
|
|
|
sendEnterpriseWeiXinMessage(accountInfo);
|
|
|
+ log.info("accountId:=={}==计划id:{}=====第三方点击监测链接不一致,已发送企业微信通知============",accountInfo.getAccountId(),actiontrackUrl.getPlanId());
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ log.info("accountId:=={}====已创建的计划暂时没有第三方点击监测链接============",accountInfo.getAccountId());
|
|
|
});
|
|
|
return Result.successMsg("成功。",null);
|
|
|
}
|