|
|
@@ -122,7 +122,7 @@ func (a *TaskExecutor) saveHis(id string, action *Action) error {
|
|
|
args.Cmd = action.ExecutorProperty.FunctionCode
|
|
|
args.Params = gjson.New(action.ExecutorProperty.FunctionValue).MustToJsonString()
|
|
|
}
|
|
|
- if action.PlcPubMessage.Topic != "" {
|
|
|
+ if action.PlcPubMessage != nil {
|
|
|
args.Topic = action.PlcPubMessage.Topic
|
|
|
args.Payload = string(action.PlcPubMessage.Payload)
|
|
|
}
|