我不清楚你的需求,无法给你提供建议。
msg.payload = {
"touser": '@all',
"toparty": "PartyID1|PartyID2",
"totag": "TagID1 | TagID2",
"msgtype": "news",
"agentid": "1000888",
"news": {
"articles": [
{
"title": "警告信息:",
"description": message,
"url": pic_url,
"picurl": pic_url
}
]
},
"safe": 0
}
上面这段代码里面是在重新给 msg.payload 赋值,如果你后面还要用到msg里的数据,就要把需要的数据保存到其他变量里,或者上面的赋值换个对象。 |