fix: 优化报表标题生成逻辑

This commit is contained in:
renzhiyuan 2026-01-04 11:25:03 +08:00
parent 63ddd84a43
commit 8fb5d1b038
1 changed files with 5 additions and 0 deletions

View File

@ -37,6 +37,11 @@ func (d *DingBotService) OnChatBotMessageReceived(ctx context.Context, data *cha
// 启动后台任务(独立生命周期,带超时控制) // 启动后台任务(独立生命周期,带超时控制)
go func() { go func() {
defer func() {
if r := recover(); r != nil {
log.Printf("稍等一下,问的人太多了,有点转不过来,请稍等下再来🚀🚀🚀")
}
}()
ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute) ctx, cancel := context.WithTimeout(context.Background(), 5*time.Minute)
defer cancel() defer cancel()
if err := d.runBackgroundTasks(ctx, data, requireData); err != nil { if err := d.runBackgroundTasks(ctx, data, requireData); err != nil {