修改:ztiemr 服务实现,增加调度单/多推支持,调度配置记录配置文件
git-svn-id: svn://47.119.165.148/zhub@66 e63fbceb-bcc3-4977-ac22-735b83d8d0f4
This commit is contained in:
@@ -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 timer‘s info
|
||||
|
||||
Reference in New Issue
Block a user