|
|
@@ -8,6 +8,7 @@ import com.mokamrp.privates.entity.pangu.FosterwxCashScheduleTaskListHandle;
|
|
|
import com.mokamrp.privates.mapper.pangu.FosterwxCashScheduleTaskListMapper;
|
|
|
import com.mokamrp.privates.mapper.pangu.pojo.FosterwxCashOasBox;
|
|
|
import com.mokamrp.privates.mapper.pangu.pojo.FosterwxCashScheduleTaskList;
|
|
|
+import com.mokamrp.privates.mapper.pangu.pojo.FosterwxCashTaskList;
|
|
|
import com.mokamrp.privates.service.pangu.FosterwxCashOasBoxService;
|
|
|
import com.mokamrp.privates.service.pangu.FosterwxCashScheduleTaskListService;
|
|
|
import com.mokamrp.privates.service.pangu.FosterwxCashTaskListService;
|
|
|
@@ -154,4 +155,35 @@ public class FosterwxCashScheduleTaskListServiceImpl extends ServiceImpl<Fosterw
|
|
|
|
|
|
return fosterwxCashScheduleTaskLists;
|
|
|
}
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 任务类型为小程序是 拼接一个json字符串返回 供前端展示
|
|
|
+ * @param fosterwxCashScheduleTaskList
|
|
|
+ * @param fosterwxCashTaskList
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @Override
|
|
|
+ public void editBoxUrl(FosterwxCashScheduleTaskList fosterwxCashScheduleTaskList, FosterwxCashTaskList fosterwxCashTaskList) {
|
|
|
+ FosterwxCashOasBox fosterwxCashOasBox = fosterwxCashOasBoxService.getRandBox(fosterwxCashScheduleTaskList.getGroupId());
|
|
|
+ fosterwxCashOasBoxService.addSendTextCnt(fosterwxCashScheduleTaskList.getGroupId(), fosterwxCashOasBox.getGhId());
|
|
|
+
|
|
|
+ // 状态
|
|
|
+ fosterwxCashScheduleTaskList.setStatus(1);
|
|
|
+ // 失败原因
|
|
|
+ fosterwxCashScheduleTaskList.setErrInfo("");
|
|
|
+ // 分配的公众号
|
|
|
+ fosterwxCashScheduleTaskList.setGhId(fosterwxCashOasBox.getGhId());
|
|
|
+
|
|
|
+ // 小程序链接
|
|
|
+ if (8 == fosterwxCashTaskList.getBoxType()) {
|
|
|
+ // 投放版视频
|
|
|
+ // 发文链接
|
|
|
+ fosterwxCashScheduleTaskList.setSendUrl("/pages/index/index?type=tuiguang&videoId=" + fosterwxCashTaskList.getVideoId());
|
|
|
+ } else {
|
|
|
+ // 盘古版视频
|
|
|
+ fosterwxCashScheduleTaskList.setSendUrl(String.format("pages/index/index?type=tuiguang&materialId=%d&categoryId=&d", fosterwxCashTaskList.getVideoId(), fosterwxCashTaskList.getTagId()));
|
|
|
+ }
|
|
|
+
|
|
|
+ fosterwxCashScheduleTaskListMapper.updateById(fosterwxCashScheduleTaskList);
|
|
|
+ }
|
|
|
}
|