s3地址问题

This commit is contained in:
2025-02-28 12:55:38 +08:00
parent a1890c7562
commit 087def8015
2 changed files with 16 additions and 2 deletions

View File

@ -3,13 +3,15 @@ package util
import (
"ZhenTuLocalPassiveAdapter/config"
"fmt"
"path"
"regexp"
"strings"
"time"
)
func ParseStartStopTime(filePath string, relativeDate time.Time) (time.Time, time.Time, error) {
split := strings.Split(filePath, config.Config.FileName.TimeSplit)
_, file := path.Split(filePath)
split := strings.Split(file, config.Config.FileName.TimeSplit)
if len(split) == 0 {
return time.Time{}, time.Time{}, fmt.Errorf("无法解析时间范围")
}