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