增加定时指令触发器插件

This commit is contained in:
源文雨
2022-03-06 21:21:28 +08:00
parent bf54789f0f
commit 309efe8cd8
11 changed files with 173 additions and 6 deletions

View File

@@ -3,11 +3,13 @@ package reborn
import (
"encoding/json"
"github.com/FloatTech/zbputils/control/order"
"github.com/FloatTech/zbputils/file"
)
// load 加载rate数据
func load(area *rate, jsonfile string) error {
defer order.DoneOnExit()()
data, err := file.GetLazyData(jsonfile, true, true)
if err != nil {
return err