You've already forked VptPassiveAdapter
s3地址问题
This commit is contained in:
@ -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("无法解析时间范围")
|
||||
}
|
||||
|
Reference in New Issue
Block a user