修改:ztiemr 服务实现,增加调度单/多推支持,调度配置记录配置文件

git-svn-id: svn://47.119.165.148/zhub@66 e63fbceb-bcc3-4977-ac22-735b83d8d0f4
This commit is contained in:
lxy
2021-01-11 10:32:34 +00:00
parent 320a94af2d
commit 3d380e9353
3 changed files with 84 additions and 15 deletions

View File

@@ -146,7 +146,11 @@ func (c *Client) Daly(topic string, message string, daly int) error {
func (c *Client) Timer(topic string, expr string, fun func()) {
c.timerFun[topic] = fun
c.send("timer", topic, expr)
c.send("timer", topic, expr, "x")
}
func (c *Client) TimerSingle(topic string, expr string, fun func()) {
c.timerFun[topic] = fun
c.send("timer", topic, expr, "a")
}
// todo: save client timers info