|
@@ -12,9 +12,6 @@ import com.shigongli.service.ITaHousePersonService;
|
12
|
12
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
13
|
13
|
import com.shigongli.service.ITaShopKeeperService;
|
14
|
14
|
import lombok.extern.slf4j.Slf4j;
|
15
|
|
-import me.chanjar.weixin.mp.api.WxMpService;
|
16
|
|
-import me.chanjar.weixin.mp.bean.subscribe.WxMpSubscribeMessage;
|
17
|
|
-import org.checkerframework.checker.units.qual.A;
|
18
|
15
|
import org.springframework.beans.factory.annotation.Autowired;
|
19
|
16
|
import org.springframework.scheduling.annotation.Async;
|
20
|
17
|
import org.springframework.stereotype.Service;
|
|
@@ -76,7 +73,12 @@ public class TaHousePersonServiceImpl extends ServiceImpl<TaHousePersonMapper, T
|
76
|
73
|
|
77
|
74
|
// 发送内容
|
78
|
75
|
List<WxMaSubscribeMessage.Data> dataList = new ArrayList<>();
|
79
|
|
- dataList.add(new WxMaSubscribeMessage.Data("thing6", taHouse.getTitle().substring(0, 10)));
|
|
76
|
+ String title = null != taHouse.getTitle() ? taHouse.getTitle() : "";
|
|
77
|
+ if (title.length() > 10) {
|
|
78
|
+ title = title.substring(0, 10) + "...";
|
|
79
|
+ }
|
|
80
|
+
|
|
81
|
+ dataList.add(new WxMaSubscribeMessage.Data("thing6", title));
|
80
|
82
|
dataList.add(new WxMaSubscribeMessage.Data("date2", dateStr));
|
81
|
83
|
|
82
|
84
|
//
|