|
|
发表于 2022-4-29 15:13:07|来自:
|
显示全部楼层
在message.json中配置了一个custom_create通道,然后在服务管理中代理配置中,创建了一个定时任务脚本。向custom_create队列中写入消息。当写入的body中内容为字符串时能显示出字符串内容。当body写入内容为对象时,显示不出来。
var ttex=={
"name":"xxx生日",
"text":"采购物品"
}
var msg = {
"type": "custom_create",
"person": "李巍@liwei@P",
"title": "员工生日",
"body": ttex
}
this.Actions.load("x_message_assemble_communicate").MessageAction.customCreate(msg, function(json){
//发送成功后的回调
});
|
|