Pārlūkot izejas kodu

Merge branch 'dev-xym-update-text' of Server/growth-manager into master

xueyiming 3 mēneši atpakaļ
vecāks
revīzija
7ab8269b9d

+ 5 - 1
offline-module/src/main/java/com/tzld/piaoquan/offline/job/WeComSpecialDataJob.java

@@ -213,7 +213,11 @@ public class WeComSpecialDataJob {
                         if (Objects.equals(MessageAttachmentTypeEnum.MINI_PROGRAM.getCode(), type)) {
                         if (Objects.equals(MessageAttachmentTypeEnum.MINI_PROGRAM.getCode(), type)) {
                             JSONObject miniprogramAttachment = new JSONObject();
                             JSONObject miniprogramAttachment = new JSONObject();
                             JSONObject miniprogram = new JSONObject();
                             JSONObject miniprogram = new JSONObject();
-                            miniprogram.put("appid", MessageConstant.appid);
+                            if(StringUtils.isNotEmpty(messageAttachment.getAppid())){
+                                miniprogram.put("appid", messageAttachment.getAppid());
+                            }else {
+                                miniprogram.put("appid", MessageConstant.appid);
+                            }
                             String title = messageAttachment.getTitle();
                             String title = messageAttachment.getTitle();
                             if (title.getBytes(StandardCharsets.UTF_8).length > MAX_BYTES) {
                             if (title.getBytes(StandardCharsets.UTF_8).length > MAX_BYTES) {
                                 title = ToolUtils.truncateString(title, MAX_BYTES - 3) + "...";
                                 title = ToolUtils.truncateString(title, MAX_BYTES - 3) + "...";