|
|
@@ -110,7 +110,7 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
|
|
|
|
|
|
/**
|
|
|
* 生成任务 正常生成 | 生成失败|检测到公众号封禁重新生成链接
|
|
|
- * @param editList
|
|
|
+ * @param newsList
|
|
|
*/
|
|
|
@Override
|
|
|
public void create(List<FosterwxCashScheduleTaskList> newsList) {
|
|
|
@@ -154,6 +154,7 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
|
|
|
}
|
|
|
|
|
|
fosterwxCashScheduleTaskListMapper.updateById(fosterwxCashScheduleTaskList);
|
|
|
+ log.info("任务信息{}", fosterwxCashScheduleTaskList);
|
|
|
if (1 == fosterwxCashScheduleTaskList.getType()) {
|
|
|
fosterwxCashScheduleTaskList.setFosterwxCashTaskList(fosterwxCashTaskListService.getById(fosterwxCashScheduleTaskList.getTaskId()));
|
|
|
} else {
|
|
|
@@ -251,7 +252,8 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
|
|
|
fosterwxCashOasBoxService.addSendTextCnt(fosterwxCashScheduleTaskList.getGroupId(), fosterwxCashOasBox.getGhId());
|
|
|
|
|
|
// 状态
|
|
|
- fosterwxCashScheduleTaskList.setStatus(1);
|
|
|
+ if (3 != fosterwxCashWorkwxTaskList.getTaskType())
|
|
|
+ fosterwxCashScheduleTaskList.setStatus(1);
|
|
|
// 失败原因
|
|
|
fosterwxCashScheduleTaskList.setErrInfo("");
|
|
|
// 分配的公众号
|
|
|
@@ -272,9 +274,7 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
|
|
|
}
|
|
|
|
|
|
fosterwxCashScheduleTaskList.setSendUrl(sendUrl);
|
|
|
- if (1 == fosterwxCashWorkwxTaskList.getTaskType()) {
|
|
|
- fosterwxCashScheduleTaskList.setBoxUrl(sendUrl);
|
|
|
- }
|
|
|
+ fosterwxCashScheduleTaskList.setBoxUrl(sendUrl);
|
|
|
|
|
|
fosterwxCashScheduleTaskListMapper.updateById(fosterwxCashScheduleTaskList);
|
|
|
}
|