|
|
@@ -81,7 +81,6 @@ func (m *SceneService) SubmitAction(args rpcs.ArgsSubmitSceneAction, reply *rpcs
|
|
|
server.Log.Errorf("不支持的场景类型: %s, 场景ID: %s", scene.SceneType, scene.Id)
|
|
|
return err
|
|
|
}
|
|
|
- fmt.Printf("提交场景任务:%s\n", gjson.New(scene).MustToJsonString())
|
|
|
switch scene.Action {
|
|
|
case "add":
|
|
|
err = srv.Add(scene.Config)
|
|
|
@@ -179,7 +178,7 @@ func (m *SceneService) RestartScenes() {
|
|
|
if err != nil {
|
|
|
server.Log.Errorf("get all scene error: %v", err)
|
|
|
}
|
|
|
- fmt.Printf("重启场景:%s", gjson.New(sceneReply).MustToJsonString())
|
|
|
+
|
|
|
reply := rpcs.ReplySubmitSceneAction{}
|
|
|
for _, v := range sceneReply.Result {
|
|
|
if v.Status == 1 {
|