修复了time 判断不会变的错误

main
Administrator 2024-07-23 13:33:54 +08:00
parent c1e13f3f00
commit 409b5d193b
1 changed files with 3 additions and 4 deletions

View File

@ -9,10 +9,6 @@ import (
"time" "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) { func JsonDeal(file string, remindList []string, closeList []string) (r, c []string) {
emailJson, err := os.ReadFile(file) emailJson, err := os.ReadFile(file)
if err != nil { if err != nil {
@ -54,6 +50,9 @@ func GetSheetName(file string) (remindList, closeList []string, err error) {
//遍历所有工作表的A2格 //遍历所有工作表的A2格
sheets := f.GetSheetMap() sheets := f.GetSheetMap()
var sheetName string var sheetName string
var nowMouth = time.Now().Month().String()
var nowDay = time.Now().Day()
var M = dateToChinese(nowMouth)
for _, s := range sheets { for _, s := range sheets {
//// 读取A2单元格的值 //// 读取A2单元格的值
a2value, err := f.GetCellValue(s, "A2") a2value, err := f.GetCellValue(s, "A2")