fix: 优化报表标题生成逻辑
This commit is contained in:
parent
63ddd84a43
commit
8fb5d1b038
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue