fix: news图文消息url字段必填,添加默认值
企微appchat/send的news消息类型要求url必填,否则报errcode 41010 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -417,9 +417,11 @@ class WeChatService:
|
|||||||
return False
|
return False
|
||||||
try:
|
try:
|
||||||
access_token = await self._get_access_token()
|
access_token = await self._get_access_token()
|
||||||
article = {"title": title, "description": description}
|
article = {
|
||||||
if url:
|
"title": title,
|
||||||
article["url"] = url
|
"description": description,
|
||||||
|
"url": url or "https://work.weixin.qq.com",
|
||||||
|
}
|
||||||
if picurl:
|
if picurl:
|
||||||
article["picurl"] = picurl
|
article["picurl"] = picurl
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user