@ynhcj/xiaoyi-channel 1.1.20 → 1.1.21
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/provider.js +1 -2
- package/package.json +1 -1
package/dist/src/provider.js
CHANGED
|
@@ -361,10 +361,9 @@ export const xiaoyiProvider = {
|
|
|
361
361
|
const traceId = ctx.extraParams[HEADER_TRACE_ID];
|
|
362
362
|
const sessionId = ctx.extraParams[HEADER_SESSION_ID];
|
|
363
363
|
const interactionId = ctx.extraParams[HEADER_INTERACTION_ID];
|
|
364
|
-
const ts = `_${Date.now()}`;
|
|
365
364
|
if (typeof traceId === "string") {
|
|
366
365
|
const isCron = isCronTriggered(context.messages);
|
|
367
|
-
dynamicHeaders[HEADER_TRACE_ID] = isCron ? `cron_${traceId}${
|
|
366
|
+
dynamicHeaders[HEADER_TRACE_ID] = isCron ? `cron_${traceId}_${Date.now()}` : traceId;
|
|
368
367
|
if (isCron) {
|
|
369
368
|
const cronTitle = extractCronTitle(context.messages);
|
|
370
369
|
if (cronTitle)
|