Просмотр исходного кода

小程序pagePath remove .html

wangyunpeng 3 часов назад
Родитель
Сommit
18b2beb3ad

+ 1 - 1
api-module/src/main/java/com/tzld/piaoquan/api/job/wecom/thirdpart/WeComSendMsgJob.java

@@ -305,7 +305,7 @@ public class WeComSendMsgJob {
         staff.setRemark(thirdPartWeComStaff.getName());
         String putScene = StringUtils.isNotBlank(roomConfig.getPutScene()) ? roomConfig.getPutScene() : "touliu";
         String pageChannel = StringUtils.isNotBlank(roomConfig.getChannel()) ? roomConfig.getChannel() : "tencentqw";
-        String page = messageAttachmentService.getPageNoCache(putScene, pageChannel, staff, video.getVideoId(), "企微", "社群", "位置X", null);
+        String page = messageAttachmentService.getPageNoCache("pages/category.html", putScene, pageChannel, staff, video.getVideoId(), "企微", "社群", "位置X", null);
         page = videoMultiService.setVideoMultiTitleCoverPagePath(video.getVideoId(), page, video.getTitle(), video.getCover());
 
         CgiReplyBucketData cgiReplyBucketData = new CgiReplyBucketData();

+ 1 - 1
api-module/src/main/java/com/tzld/piaoquan/api/service/contentplatform/impl/ContentPlatformPlanServiceImpl.java

@@ -2074,7 +2074,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);

+ 5 - 5
common-module/src/main/java/com/tzld/piaoquan/growth/common/service/Impl/MessageAttachmentServiceImpl.java

@@ -400,7 +400,7 @@ public class MessageAttachmentServiceImpl implements MessageAttachmentService {
             if (StringUtils.isNotEmpty(page)) {
                 return page;
             }
-            return insertPage(putScene, channel, staff.getCarrierId(), videoId, staff.getRemark(), typeOne, typeTwo, typeThree, experimentId);
+            return insertPage("pages/category.html", putScene, channel, staff.getCarrierId(), videoId, staff.getRemark(), typeOne, typeTwo, typeThree, experimentId);
         } catch (IOException e) {
             log.error("MessageAttachmentService getPage error", e);
         }
@@ -408,24 +408,24 @@ public class MessageAttachmentServiceImpl implements MessageAttachmentService {
     }
 
     @Override
-    public String getPageNoCache(String putScene, String channel, Staff staff, Long videoId,
+    public String getPageNoCache(String path, String putScene, String channel, Staff staff, Long videoId,
                                  String typeOne, String typeTwo, String typeThree, String experimentId) {
         try {
             if (staff == null || staff.getCarrierId() == null) {
                 return "";
             }
-            return insertPage(putScene, channel, staff.getCarrierId(), videoId, staff.getRemark(), typeOne, typeTwo, typeThree, experimentId);
+            return insertPage(path, putScene, channel, staff.getCarrierId(), videoId, staff.getRemark(), typeOne, typeTwo, typeThree, experimentId);
         } catch (IOException e) {
             log.error("MessageAttachmentService getPageNoCache error", e);
         }
         return null;
     }
 
-    private String insertPage(String putScene, String channel, String carrierId, Long videoId, String remark,
+    private String insertPage(String path, String putScene, String channel, String carrierId, Long videoId, String remark,
                               String typeOne, String typeTwo, String typeThree, String experimentId) throws IOException {
         AdPutFlowParam param = new AdPutFlowParam();
         param.setChannel(channel);
-        param.setPath("pages/category.html");
+        param.setPath(path);
         param.setPutCarrierId(carrierId);
         param.setPutScene(putScene);
         param.setPutStartDate(DateUtil.getDayDateString("yyyy-MM-dd"));

+ 1 - 1
common-module/src/main/java/com/tzld/piaoquan/growth/common/service/MessageAttachmentService.java

@@ -27,7 +27,7 @@ public interface MessageAttachmentService {
 
     String getPage(String putScene, String channel, Staff staff, Long videoId, String typeOne, String typeTwo, String typeThree, String experimentId);
 
-    String getPageNoCache(String putScene, String channel, Staff staff, Long videoId, String typeOne, String typeTwo, String typeThree, String experimentId);
+    String getPageNoCache(String path, String putScene, String channel, Staff staff, Long videoId, String typeOne, String typeTwo, String typeThree, String experimentId);
 
     String getPage(String channel, String carrierId, String scene, String putTypeOne, String putTypeTwo, String putTypeThree, Long videoId, String experimentId);