|
@@ -58,15 +58,7 @@ public class WarningOperationServiceImpl implements IWarningOperationService {
|
|
|
|
|
|
@Override
|
|
@Override
|
|
public void kuaiShouWarningOperation(Long projectId, String projectName, Long advertiserId, Long unitId, String unit_name) {
|
|
public void kuaiShouWarningOperation(Long projectId, String projectName, Long advertiserId, Long unitId, String unit_name) {
|
|
-
|
|
|
|
String userId = userAllocationMapper.queryUserIdByAccountId(advertiserId);
|
|
String userId = userAllocationMapper.queryUserIdByAccountId(advertiserId);
|
|
- try {
|
|
|
|
- String text = messageTemplate.getKuaiShouBidTypeMessage(projectName, advertiserId, unitId, unit_name);
|
|
|
|
-
|
|
|
|
- sendMessageService.sendMessage(userId, text);
|
|
|
|
- } catch (Exception e) {
|
|
|
|
- e.printStackTrace();
|
|
|
|
- }
|
|
|
|
CtopOauthToken token = oauthTokenService.getTokenByAccountId(advertiserId);
|
|
CtopOauthToken token = oauthTokenService.getTokenByAccountId(advertiserId);
|
|
updateService.updateUnitStatus(token.getAccessToken(), advertiserId, unitId, 2, "admin");
|
|
updateService.updateUnitStatus(token.getAccessToken(), advertiserId, unitId, 2, "admin");
|
|
WarningOperationLog warningOperationLog = new WarningOperationLog();
|
|
WarningOperationLog warningOperationLog = new WarningOperationLog();
|
|
@@ -76,6 +68,14 @@ public class WarningOperationServiceImpl implements IWarningOperationService {
|
|
warningOperationLog.setUserId(userId);
|
|
warningOperationLog.setUserId(userId);
|
|
warningOperationLog.setWarningType(1);
|
|
warningOperationLog.setWarningType(1);
|
|
warningOperationLogService.save(warningOperationLog);
|
|
warningOperationLogService.save(warningOperationLog);
|
|
|
|
+ log.info("暂停组成功,accountId:{},unitId:{}", advertiserId, unitId);
|
|
|
|
+ try {
|
|
|
|
+ String text = messageTemplate.getKuaiShouBidTypeMessage(projectName, advertiserId, unitId, unit_name);
|
|
|
|
+
|
|
|
|
+ sendMessageService.sendMessage(userId, text);
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
}
|
|
}
|