|
|
@@ -577,8 +577,8 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
private void updateGhDetail(ContentPlatformGzhAccount account, Integer selectVideoType, List<Long> videoIds,
|
|
|
Map<Long, String> videoIdTestIdMap) {
|
|
|
ContentPlatformAccount loginUser = LoginUserContext.getUser();
|
|
|
- // 根据 content_platform_account 的 type 判断公众号类型:type=2 内部账号 -> 内部公众号,否则 -> 外部公众号
|
|
|
- Integer ghType = Objects.equals(loginUser.getType(), 2) ? GhTypeEnum.GH.type : GhTypeEnum.THIRD_PARTY_GH.type;
|
|
|
+ // 根据 content_platform_account 的 type 判断公众号类型:内部账号 -> 内部公众号,否则 -> 外部公众号
|
|
|
+ Integer ghType = Objects.equals(loginUser.getType(), ContentPlatformAccountTypeEnum.INTERNAL.getVal()) ? GhTypeEnum.GH.type : GhTypeEnum.THIRD_PARTY_GH.type;
|
|
|
GhDetail ghDetail = ghDetailService.getGhDetailByGhIdType(account.getGhId(), ghType);
|
|
|
GhDetailVo detailVo = new GhDetailVo();
|
|
|
Integer strategyStatus = selectVideoType == 0 ? StrategyStatusEnum.DEFAULT.status : StrategyStatusEnum.STRATEGY.status;
|
|
|
@@ -2119,7 +2119,8 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
@Override
|
|
|
public List<XcxPlanItemVO> xcxPlanSave(XcxPlanSaveParam param) {
|
|
|
ContentPlatformAccount loginUser = LoginUserContext.getUser();
|
|
|
- if (!Objects.equals(loginUser.getType(), 2) && !Objects.equals(loginUser.getType(), 3)) {
|
|
|
+ if (!Objects.equals(loginUser.getType(), ContentPlatformAccountTypeEnum.INTERNAL.getVal())
|
|
|
+ && !Objects.equals(loginUser.getType(), ContentPlatformAccountTypeEnum.AGENT.getVal())) {
|
|
|
throw new CommonException(ExceptionEnum.XCX_PLAN_INTERNAL_ONLY);
|
|
|
}
|
|
|
Long now = System.currentTimeMillis();
|
|
|
@@ -2132,7 +2133,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
Staff staff = new Staff();
|
|
|
staff.setCarrierId("wxf7261ed54f2e450e");
|
|
|
staff.setRemark(param.getRemark());
|
|
|
- String pageUrl = messageAttachmentService.getPageNoCache("touliu", "tencent", staff,
|
|
|
+ String pageUrl = messageAttachmentService.getPageNoCache("pages/category", "touliu", "tencent", staff,
|
|
|
videoParam.getVideoId(), "小程序", null, null, videoParam.getExperimentId());
|
|
|
String rootSourceId = MessageUtil.getRootSourceId(pageUrl);
|
|
|
xcxPlan.setPageUrl(pageUrl);
|
|
|
@@ -2152,7 +2153,8 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
@Override
|
|
|
public void xcxPlanDelete(Long id) {
|
|
|
ContentPlatformAccount loginUser = LoginUserContext.getUser();
|
|
|
- if (!Objects.equals(loginUser.getType(), 2) && !Objects.equals(loginUser.getType(), 3)) {
|
|
|
+ if (!Objects.equals(loginUser.getType(), ContentPlatformAccountTypeEnum.INTERNAL.getVal())
|
|
|
+ && !Objects.equals(loginUser.getType(), ContentPlatformAccountTypeEnum.AGENT.getVal())) {
|
|
|
throw new CommonException(ExceptionEnum.XCX_PLAN_INTERNAL_ONLY);
|
|
|
}
|
|
|
ContentPlatformXcxPlan plan = xcxPlanMapper.selectByPrimaryKey(id);
|
|
|
@@ -2167,7 +2169,8 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
@Override
|
|
|
public List<XcxPlanItemVO> xcxPlanMultiLink(XcxPlanMultiLinkParam param) {
|
|
|
ContentPlatformAccount loginUser = LoginUserContext.getUser();
|
|
|
- if (!Objects.equals(loginUser.getType(), 2) && !Objects.equals(loginUser.getType(), 3)) {
|
|
|
+ if (!Objects.equals(loginUser.getType(), ContentPlatformAccountTypeEnum.INTERNAL.getVal())
|
|
|
+ && !Objects.equals(loginUser.getType(), ContentPlatformAccountTypeEnum.AGENT.getVal())) {
|
|
|
throw new CommonException(ExceptionEnum.XCX_PLAN_INTERNAL_ONLY);
|
|
|
}
|
|
|
if (Objects.isNull(param.getPlanId()) || Objects.isNull(param.getCount())
|
|
|
@@ -2197,7 +2200,7 @@ public class ContentPlatformPlanServiceImpl implements ContentPlatformPlanServic
|
|
|
Staff staff = new Staff();
|
|
|
staff.setCarrierId("wxf7261ed54f2e450e");
|
|
|
staff.setRemark(src.getRemark());
|
|
|
- String pageUrl = messageAttachmentService.getPageNoCache("touliu", "tencent", staff,
|
|
|
+ String pageUrl = messageAttachmentService.getPageNoCache("pages/category", "touliu", "tencent", staff,
|
|
|
srcVideo.getVideoId(), "小程序", null, null, srcVideo.getExperimentId());
|
|
|
String rootSourceId = MessageUtil.getRootSourceId(pageUrl);
|
|
|
xcxPlan.setPageUrl(pageUrl);
|