From bc6c3d228939c8a6d4e4f010a6f5480c834560f4 Mon Sep 17 00:00:00 2001 From: jiangyong27 Date: Thu, 3 Apr 2025 09:54:34 +0800 Subject: [PATCH] tags2 --- worker/staff.go | 2 +- worker/worker.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/worker/staff.go b/worker/staff.go index 2befaef..57265f1 100644 --- a/worker/staff.go +++ b/worker/staff.go @@ -89,7 +89,7 @@ func (s *Staff) SendStaffSalaryBill(corpId int64, month string) { continue } encId := goutil.EncryptID(staffSalary.Id, "@@salary@@") - billUrl := fmt.Sprintf("https://e.batiao8.com/api/staff/salary/bill?id=%s", encId) + billUrl := fmt.Sprintf("https://e.yubanqy.com/api/staff/salary/bill?id=%s", encId) message := make([]string, 0) message = append(message, fmt.Sprintf("【工资单】[%s][%s]", staffUser.Username, month)) diff --git a/worker/worker.go b/worker/worker.go index 6f49b7d..afb21d0 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -49,7 +49,7 @@ func InitCorp1002(cron *gocron.Scheduler) { }) //10号晚上8点发送工资单 - cron.Every(1).Month(2).At("23:00").Do(func() { + cron.Every(1).Month(3).At("22:00").Do(func() { go staff.SendStaffSalaryBill(corpId, time.Now().AddDate(0, -1, 0).Format("200601")) //go staff.SendStaffSalaryBill(1002, time.Now().AddDate(0, -1, 0).Format("200601")) }) @@ -90,7 +90,7 @@ func InitCorp1000(cron *gocron.Scheduler) { }) //10号晚上8点发送工资单 - cron.Every(1).Month(2).At("23:00").Do(func() { + cron.Every(1).Month(3).At("22:00").Do(func() { go NewStaff().SendStaffSalaryBill(corpId, time.Now().AddDate(0, -1, 0).Format("200601")) })