@dcrays/dcgchat-test 0.3.19 → 0.3.20
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/package.json +1 -1
- package/src/channel.ts +1 -2
- package/src/transport.ts +2 -1
package/package.json
CHANGED
package/src/channel.ts
CHANGED
|
@@ -163,10 +163,9 @@ export const dcgchatPlugin: ChannelPlugin<ResolvedDcgchatAccount> = {
|
|
|
163
163
|
sessionId: `${sessionId}`,
|
|
164
164
|
messageId: messageId,
|
|
165
165
|
is_finish: -1,
|
|
166
|
-
message_tags: { source: 'channel' },
|
|
167
166
|
real_mobook: !sessionId ? 1 : ''
|
|
168
167
|
})
|
|
169
|
-
wsSendRaw(merged, { response: ctx.text })
|
|
168
|
+
wsSendRaw(merged, { response: ctx.text, message_tags: { source: 'channel' } })
|
|
170
169
|
}
|
|
171
170
|
}
|
|
172
171
|
return {
|
package/src/transport.ts
CHANGED
|
@@ -154,7 +154,8 @@ export function wsSendRaw(ctx: IMsgParams, content: Record<string, unknown>): bo
|
|
|
154
154
|
const ws = getWsConnection()
|
|
155
155
|
if (isWsOpen()) {
|
|
156
156
|
ws?.send(JSON.stringify(buildOpenclawBotChat(ctx, content, { mergeChannelDefaults: true })))
|
|
157
|
-
|
|
157
|
+
|
|
158
|
+
dcgLogger('已发送:' + JSON.stringify(buildOpenclawBotChat(ctx, content, { mergeChannelDefaults: true })))
|
|
158
159
|
}
|
|
159
160
|
return true
|
|
160
161
|
}
|