curl 'https:
-H 'Content-Type: application/json' \
-d '{
"msgtype": "template_card",
"template_card": {
"card_type": "news_notice",
"source": {
"icon_url": "",
"desc": "蜜蜂互联",
"desc_color": 0
},
"main_title":{
"title":"App 更新",
},
"card_image": {
"url": ${image_url},
"aspect_ratio": 2.25
},
"image_text_area":{
"title":"${app_default_evn}环境-应用更新提醒",
"image_url": ${image_url}
},
"vertical_content_list":[
{
"title":"惊喜红包等你来拿",
"desc":"下载企业微信还能抢红包!"
}
],
"horizontal_content_list": [
{
"keyname": "主体名称:",
"value": "${subjectName}"
},
{
"keyname": "应用名称:",
"value": "${appName}"
},
{
"keyname": "应用类型:",
"value": "iOS"
},
{
"keyname": "应用版本:",
"value": "${version}"
},
{
"keyname": "应用包名:",
"value": "${bundle_identifier}"
},
{
"keyname": "应用分支:",
"value": "${saas_branch_name}"
},
{
"keyname": "安装类型:",
"value": "${environment_str}"
},
{
"keyname": "打包渠道:",
"value": "${packageType_str}"
},
{
"keyname": "打包时间:",
"value": "${packageTime}"
},
{
"keyname": "操作人:",
"value": "${creator}"
},
{
"keyname": "备注:",
"value": "${remark}"
},
{
"keyname": "${title_str}",
"value": "${fileUrl}",
"type": 1
}
],
"card_action": {
"type": 1,
"url": "https://www.baidu.com"
}
}
}'
{"errcode":42045,"errmsg":"Warning: wrong json format. Template_Card card_action Missing or Invalid, hint: [1725955999562582720333958], from ip: 61.141.124.221, more info at https://open.work.weixin.qq.com/devtool/query?e=42045"}%
企业微信相关问题请到企业微信社区咨询 https://developer.work.weixin.qq.com/community/question