feat(semi-auto): 新增履约历史与全链路报文留痕
运营端历史抽屉展示状态流转与全链路报文:客户/运营接口入站 + 虎牙 WUP/livelink、外部 Connector 出站;轮询按状态变化采样,Cookie/Token/短信验证码不落库,报文保留 180 天。同步收敛登录/绑定事件,避免轮询重复写时间线。
This commit is contained in:
@@ -4,6 +4,7 @@ import { createApp } from './app.js'
|
||||
import { runtimeConfig } from './config/runtime.js'
|
||||
import { assertRuntimeConfigValid } from './config/runtime-validation.js'
|
||||
import { bootstrapCoreServices } from './startup/bootstrap.js'
|
||||
import { startSemiAutoTraceCleanup } from './services/semi-auto/semi-auto-trace.js'
|
||||
import { createShutdownController } from './startup/shutdown.js'
|
||||
import { createStartupState, formatStartupError } from './startup/state.js'
|
||||
import { logError, logInfo } from './utils/logger.js'
|
||||
@@ -30,6 +31,8 @@ const app = createApp({
|
||||
const server = app.listen(port, host, () => {
|
||||
logInfo('[startup]', `order-site-backend kuaishou-lite listening on http://${host}:${port}`)
|
||||
void bootstrapCoreServices(startupState, () => shutdownController?.isShutdownStarted() || false)
|
||||
// 半自动履约报文保留 180 天:启动先清一次,之后每 6 小时清理。
|
||||
startSemiAutoTraceCleanup()
|
||||
})
|
||||
|
||||
shutdownController = createShutdownController(server, startupState)
|
||||
|
||||
Reference in New Issue
Block a user