|
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.aliyun.odps.data.Record;
|
|
|
import com.google.common.collect.Lists;
|
|
|
+import com.tzld.piaoquan.wecom.common.constant.MessageConstant;
|
|
|
import com.tzld.piaoquan.wecom.dao.mapper.*;
|
|
|
import com.tzld.piaoquan.wecom.model.bo.PushMessage;
|
|
|
import com.tzld.piaoquan.wecom.model.bo.VideoCombination;
|
|
@@ -500,7 +501,7 @@ public class WeComMessageDataJob {
|
|
|
}
|
|
|
MessageAttachment messageAttachment = messageAttachmentList.get(0);
|
|
|
JSONObject miniprogram = new JSONObject();
|
|
|
- miniprogram.put("appid", messageAttachment.getAppid());
|
|
|
+ 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) + "...";
|