Compare commits

...

3 Commits

Author SHA1 Message Date
Administrator 409b5d193b 修复了time 判断不会变的错误 2024-07-23 13:33:54 +08:00
Administrator c1e13f3f00 20240722 yanghui alawysonline 2024-07-22 11:29:46 +08:00
root 345a907a42 更新 Dockerfile 2024-07-22 00:05:47 +08:00
3 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,7 @@
FROM alpine:latest
ENV TZ=Asia/Shanghai
USER root
RUN apk --no-cache add tzdata
# 合并复制指令
COPY udeskstate /usr/local/bin/

View File

@ -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")

View File

@ -32,6 +32,10 @@ func job() {
log.Println("应离线人员邮箱:", closeEmail)
for _, rEmail := range closeEmail {
//2024.07.02 杨慧
if rEmail == "huiyang1@alauda.io" {
continue
}
err = modifystate.PostToModifyState(rEmail, "offline")
if err != nil {
return