修复了time 判断不会变的错误
parent
c1e13f3f00
commit
409b5d193b
|
@ -9,10 +9,6 @@ import (
|
|||
"time"
|
||||
)
|
||||
|
||||
var nowMouth = time.Now().Month().String()
|
||||
var nowDay = time.Now().Day()
|
||||
var M = dateToChinese(nowMouth)
|
||||
|
||||
func JsonDeal(file string, remindList []string, closeList []string) (r, c []string) {
|
||||
emailJson, err := os.ReadFile(file)
|
||||
if err != nil {
|
||||
|
@ -54,6 +50,9 @@ func GetSheetName(file string) (remindList, closeList []string, err error) {
|
|||
//遍历所有工作表的A2格
|
||||
sheets := f.GetSheetMap()
|
||||
var sheetName string
|
||||
var nowMouth = time.Now().Month().String()
|
||||
var nowDay = time.Now().Day()
|
||||
var M = dateToChinese(nowMouth)
|
||||
for _, s := range sheets {
|
||||
//// 读取A2单元格的值
|
||||
a2value, err := f.GetCellValue(s, "A2")
|
||||
|
|
Loading…
Reference in New Issue