doomiaichat 7.1.12 → 7.1.13
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/corzbot.js +1 -1
- package/package.json +1 -1
- package/src/corzbot.ts +1 -1
package/dist/corzbot.js
CHANGED
|
@@ -351,7 +351,7 @@ class CorzBot extends gptbase_1.default {
|
|
|
351
351
|
for (const item of allCards) {
|
|
352
352
|
const cardinfo = (0, querystring_1.parse)(item);
|
|
353
353
|
if (cardinfo.type && cardinfo.tag)
|
|
354
|
-
cardData.push({
|
|
354
|
+
cardData.push(Object.assign({}, cardinfo));
|
|
355
355
|
}
|
|
356
356
|
// 将卡片资源返回给客户端
|
|
357
357
|
this.emit('chatcard', cardData);
|
package/package.json
CHANGED
package/src/corzbot.ts
CHANGED
|
@@ -319,7 +319,7 @@ export default class CorzBot extends GptBase {
|
|
|
319
319
|
const allCards = cardResource.replace(/[\x00-\x1F\x7F]/g, '').split('|')
|
|
320
320
|
for (const item of allCards) {
|
|
321
321
|
const cardinfo: any = parse(item);
|
|
322
|
-
if (cardinfo.type && cardinfo.tag) cardData.push({
|
|
322
|
+
if (cardinfo.type && cardinfo.tag) cardData.push({ ...cardinfo })
|
|
323
323
|
}
|
|
324
324
|
// 将卡片资源返回给客户端
|
|
325
325
|
this.emit('chatcard', cardData);
|