|
@@ -143,13 +143,14 @@ public class TaChatServiceImpl extends ServiceImpl<TaChatMapper, TaChat> impleme
|
143
|
143
|
if (!isOnline && null != from) {
|
144
|
144
|
try {
|
145
|
145
|
// 推送微信消息
|
146
|
|
- String[] its = {
|
147
|
|
- String.format("sendId=%s", from.getPersonId()),
|
148
|
|
- String.format("sendName=%s", StringUtils.urlEncode(StringUtils.ifNull(from.getName(), from.getNickname()))),
|
149
|
|
- String.format("receiverId=%s", to.getPersonId()),
|
150
|
|
- String.format("receiverName=%s", StringUtils.urlEncode(StringUtils.ifNull(to.getName(), to.getNickname())))
|
151
|
|
- };
|
152
|
|
- String link = "/pages/im/index?"+String.join("&", its);
|
|
146
|
+// String[] its = {
|
|
147
|
+// String.format("sendId=%s", from.getPersonId()),
|
|
148
|
+// String.format("sendName=%s", StringUtils.urlEncode(StringUtils.ifNull(from.getName(), from.getNickname()))),
|
|
149
|
+// String.format("receiverId=%s", to.getPersonId()),
|
|
150
|
+// String.format("receiverName=%s", StringUtils.urlEncode(StringUtils.ifNull(to.getName(), to.getNickname())))
|
|
151
|
+// };
|
|
152
|
+// String link = "/pages/im/index?"+String.join("&", its);
|
|
153
|
+ String link = String.format("/pages/chat/chatDetail/index?friend=%s", from.getPersonId());
|
153
|
154
|
|
154
|
155
|
miniAppService.sendNoticeMessage(to, link, StringUtils.ifNull(from.getName(), from.getNickname()), StringUtils.ifNull(from.getTel(), from.getPhone()), "给您发送了一条新消息, 请查收", LocalDateTime.now());
|
155
|
156
|
|