fix: 优化报表标题生成逻辑
This commit is contained in:
parent
c6fda17b87
commit
63ddd84a43
|
|
@ -498,14 +498,16 @@ func (d *DingTalkBotBiz) handleReport(ctx context.Context, rec *entitys.Recogniz
|
||||||
}
|
}
|
||||||
t, err := time.Parse(time.DateTime, configData.Time)
|
t, err := time.Parse(time.DateTime, configData.Time)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
||||||
t, err = time.Parse("2006-01-02 15:04", configData.Time)
|
t, err = time.Parse("2006-01-02 15:04", configData.Time)
|
||||||
|
if err != nil {
|
||||||
|
t, err = time.Parse("2006-01-02", configData.Time)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Infof("时间识别失败:%s", configData.Time)
|
log.Infof("时间识别失败:%s", configData.Time)
|
||||||
entitys.ResText(rec.Ch, "", "时间识别失败了!可以给我一份比较具体的时间吗,例如“2025-12-31 12:00,抱歉抱歉😀")
|
entitys.ResText(rec.Ch, "", "时间识别失败了!可以给我一份比较具体的时间吗,例如“2025-12-31 12:00,抱歉抱歉😀")
|
||||||
}
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
rep, err := bbxt.NewBbxtTools()
|
rep, err := bbxt.NewBbxtTools()
|
||||||
uploader := bbxt.NewUploader(d.ossClient)
|
uploader := bbxt.NewUploader(d.ossClient)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue