API:https://work.weixin.qq.com/api/doc/90000/90135/91853
{
"creator_userid": "duyizhen",
"template_id": "Bs7wzz6rbNCXZbRi4NN9*********D5jrjqjE",
"use_template_approver": 0,
"approver": [{
"attr": 2,
"userid": ["zhangyan"]
},
{
"attr": 1,
"userid": ["lizhong"]
}
],
"notifyer": ["liujusen"],
"notify_type": 1,
"apply_data": {
"contents": [{
"control": "Text",
"id": "Text-1592831490119",
"title": [{
"text": "文本控件",
"lang": "zh_CN"
}],
"value": {
"text": "文本填写的内容"
}
},
{
"control": "Number",
"id": "Number-1592831515378",
"title": [{
"text": "测试数字",
"lang": "zh_CN"
}],
"value": {
"new_number": "700"
}
}
]
},
"summary_list": [{
"summary_info": [{
"text": "摘要第1行",
"lang": "zh_CN"
}]
},
{
"summary_info": [{
"text": "摘要第2行",
"lang": "zh_CN"
}]
},
{
"summary_info": [{
"text": "摘要第3行",
"lang": "zh_CN"
}]
}
]
}
return msg
{ "errcode": 301055, "errmsg": "no approval auth, hint: [1592881858_59_90e96b86aa1c2797a395066c1051305d], from ip: 9.84.250.5, more info at https://open.work.weixin.qq.com/devtool/query?e=301055" }
{ "errcode": 301055, "errmsg": "no approval auth, hint: [1592881854_59_0aa3497e13ad757f8e5b6433ffeb2b3b], from ip: 9.84.250.5, more info at https://open.work.weixin.qq.com/devtool/query?e=301055" }
{ "errcode": 301055, "errmsg": "no approval auth, hint: [1592881686_59_777227de4987827fd64327c496cc5c80], from ip: 9.84.250.5, more info at https://open.work.weixin.qq.com/devtool/query?e=301055" }
PS:
通过获取模板详情API可以查询到模版信息, 同时手动提交审批也是没有问题的
已解决, creator_userid必须传ID 例如我自己的ID是A00646, 不能传拼音, 传拼音会报错