|
@@ -57,7 +57,10 @@ func (d *DeviceSceneService) Add(config string) error {
|
|
|
|
|
|
// 启动监控协程
|
|
|
go d.monitorTask(c)
|
|
|
+ fmt.Printf("保存设备状态监控任务成功:%s", gjson.New(c).MustToJsonString())
|
|
|
d.tasks.Set(c.SceneId, c)
|
|
|
+ p := d.tasks.Get(c.SceneId)
|
|
|
+ fmt.Printf("pppppppppppppp:%s", gjson.New(p).MustToJsonString())
|
|
|
return nil
|
|
|
}
|
|
|
|