@ynhcj/xiaoyi-channel 1.1.2 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/outbound.js +3 -1
- package/package.json +1 -1
package/dist/src/outbound.js
CHANGED
|
@@ -109,8 +109,10 @@ export const xyOutbound = {
|
|
|
109
109
|
const pushService = new XYPushService(config);
|
|
110
110
|
// Extract title (first 57 chars or first line)
|
|
111
111
|
const title = text.split("\n")[0].slice(0, 57);
|
|
112
|
+
// Truncate push content to max length 1000
|
|
113
|
+
const pushText = text.length > 1000 ? text.slice(0, 1000) : text;
|
|
112
114
|
// Send push message (content, title, data, sessionId)
|
|
113
|
-
await pushService.sendPush(
|
|
115
|
+
await pushService.sendPush(pushText, title, undefined, actualTo);
|
|
114
116
|
console.log(`[xyOutbound.sendText] Completed successfully`);
|
|
115
117
|
// Return message info
|
|
116
118
|
return {
|