fix: 修复路径错误问题
This commit is contained in:
parent
57692a8da3
commit
e695029238
|
|
@ -158,8 +158,8 @@ func (w *statisticsOursProduct) callStatisticsTool(ctx context.Context, state *S
|
|||
|
||||
func (w *statisticsOursProduct) generateExcelAndUpload(ctx context.Context, state *StatisticsOursProductContext) (*StatisticsOursProductContext, error) {
|
||||
// 1. 获取模板路径
|
||||
cwd, _ := filepath.Abs("../../") // 单元测试用
|
||||
// cwd, _ := filepath.Abs(".")
|
||||
// cwd, _ := filepath.Abs("../../") // 单元测试用
|
||||
cwd, _ := filepath.Abs(".")
|
||||
templatePath := filepath.Join(cwd, "tmpl", "excel_temp", "recharge_statistics_ours_product.xlsx")
|
||||
fileName := fmt.Sprintf("statistics_ours_product_%d%d", time.Now().Unix(), rand.Intn(1000))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue