|
@@ -213,7 +213,11 @@ public class WeComSpecialDataJob {
|
|
|
if (Objects.equals(MessageAttachmentTypeEnum.MINI_PROGRAM.getCode(), type)) {
|
|
|
JSONObject miniprogramAttachment = 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();
|
|
|
if (title.getBytes(StandardCharsets.UTF_8).length > MAX_BYTES) {
|
|
|
title = ToolUtils.truncateString(title, MAX_BYTES - 3) + "...";
|