wip: add message field
This commit is contained in:
parent
e502cf6881
commit
7641ee6dbb
@ -282,12 +282,21 @@ function handlePythonScriptCallBack(data: any) {
|
||||
const jsonData = JSON.parse(Values.result.value)
|
||||
sendMessageToCaller({
|
||||
ActionId: extractMethodName(commandName),
|
||||
Success: success,
|
||||
Payload: jsonData,
|
||||
Message: null,
|
||||
})
|
||||
}
|
||||
else {
|
||||
console.error(data)
|
||||
createMessage.error(`执行Python脚本失败: ${data.Values.result.value}`)
|
||||
|
||||
sendMessageToCaller({
|
||||
ActionId: extractMethodName(commandName),
|
||||
Success: success,
|
||||
Payload: null,
|
||||
Message: data.Values.result.value,
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user