main.go
@@ -20,6 +20,7 @@ "wms/router" "wms/service" "wms/task" "wms/utils/dingtalkrobot" ) func main() { @@ -76,8 +77,12 @@ go service.InitLocationReportData() go service.InitHistoryReportData() //定时任务初始化 task.Init() //钉钉机器人初始化 dingtalkrobot.Init(conf.DingTalkConf.AlarmKey, conf.DingTalkConf.AlarmUrl) logx.Error(server.ListenAndServe().Error()) }