关联审批单 和 附件 参数为非必填项
我利用API提交审批流程,不上传关联审批单 和 附件,报错301025
调用接口 提交审批申请
请求地址 https://qyapi.weixin.qq.com/cgi-bin/oa/applyevent
返回状态
status: HTTP/1.1 200 OK
connection: close
error-code: 301025
error-msg: get approval param error:
content-type: application/json; charset=UTF-8
content-length: 55
返回结果 { "errcode": 301025, "errmsg": "get approval param error:" }
{
"creator_userid": "aaaaa",
"template_id": "Bs7zzfFJS5xZHf7G5ETnxxxxxx2FvRQz7ZvfVQJLi",
"use_template_approver": 1,
"apply_data": {
"contents": [
{
"control": "RelatedApproval",
"id": "RelatedApproval-1605611143898",
"title": [{
"text": "关联审批单",
"lang": "zh_CN"
}],
"value": {
"related_approval": {
"sp_no": ""
}
}
},
{
"control": "File",
"id": "File-1605691319461",
"title": [{
"text": "附件",
"lang": "zh_CN"
}],
"value": {
"files": [{
"file_id": ""
}]
}
},
{
"control": "Textarea",
"id": "Textarea-1605691324779",
"title": [{
"text": "备注",
"lang": "zh_CN"
}],
"value": {
"textarea": "测试"
}
}
]
},
"summary_list": [{
"summary_info": [{
"text": "摘要第1行",
"lang": "zh_CN"
}]
}]
}
你好,报错是否有返回hint信息,可以提供hint看下日志
pPRb0ycisfMg9xdMqWjSnzwsBF3zJtcmrsiEGOWrr5uy4lwU11UD7TtQrFN99DwLY6McI8k5NuRdd1GWLpaJpfGb_jNjMJG47r1O4nmX7jeJ1bUKBtqRqT6qDrwQOTf0sKVprwzXPFgXkVJXWLwIYi5RdPxmc6O25tZXlpRHIcNDcQLnFWt4yrdZNnF6YGJYdxPdy3XrNbUpKIel2V1nFA
调用接口 提交审批申请
请求地址 https://qyapi.weixin.qq.com/cgi-bin/oa/applyevent
返回状态
status: HTTP/1.1 200 OK
connection: close
error-code: 301025
error-msg: Warning: wrong json format. get approval param error:
content-type: application/json; charset=UTF-8
content-length: 83
返回结果 { "errcode": 301025, "errmsg": "Warning: wrong json format. get approval param error:" }
template_id和各个contents的 id 、control类型都是获取审批模板详情 接口复制过来的
解决了吗
请问这个问题解决了吗?我也碰到相同的问题。