Compare commits
No commits in common. "384d67f56d0375319c2524f2d10edbb564c8b97d" and "1a4d3224a199e7ec10444b0b69cca98b2b982925" have entirely different histories.
384d67f56d
...
1a4d3224a1
@ -84,9 +84,7 @@ func InsertSignatureV2(templatePath, outputPath string, price float32, expiratio
|
||||
// 英文格式的时间
|
||||
parsedTime, err := time.Parse("2006-01-02", expirationDate)
|
||||
if err != nil {
|
||||
fmt.Println("时间解析错误: %v", err)
|
||||
fmt.Println(expirationDate)
|
||||
return errors.New("时间解析错误")
|
||||
panic("日期格式错误!")
|
||||
}
|
||||
year := parsedTime.Format("2006") // "2006"
|
||||
month := parsedTime.Format("01") // "01"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user