diff --git a/internal/biz/group_config.go b/internal/biz/group_config.go index 6d83751..4f4938c 100644 --- a/internal/biz/group_config.go +++ b/internal/biz/group_config.go @@ -118,11 +118,10 @@ func (g *GroupConfigBiz) rechargeDailyReport(ctx context.Context, now time.Time, reports = []*bbxt.ReportRes{ { ReportName: "我们的商品统计(电商充值系统)", - Title: fmt.Sprintf("%s 电商充值系统我们的商品统计", now.Format("2006-01-02")), + Title: res["title"].(string), Path: res["path"].(string), Url: res["url"].(string), Data: res["data"].([][]string), - Desc: res["desc"].(string), }, } @@ -180,6 +179,11 @@ func (g *GroupConfigBiz) handleReport(ctx context.Context, rec *entitys.Recogniz return _err } reports = append(reports, repo...) + rechargeReport, _err := g.rechargeDailyReport(ctx, t, product, nil) + if _err != nil || len(repo) == 0 { + return _err + } + reports = append(reports, rechargeReport...) case "report_daily_recharge": product := strings.Split(groupConfig.ProductName, ",") repo, _err := g.rechargeDailyReport(ctx, t, product, nil)