- 为什么OA审批申请中附件组件上传成功了,获取审批详情的时候还是为空?
请求接口: "apply_data": { "contents": [ { "control": "File", "id": "File-1660720417887", "files": [ { "file_id": "36UHIzbGMaQa0RPrOnL5neD7fuz7_XOwpGyY2Iv0e_X8fct5b_huH6sjkyvv2h5SI", } ] } ] } 获取到的数据: "contents": [ { "control": "File", "id": "File-1660720417887", "title": [ { "text": "附件", "lang": "zh_CN" } ], "value": { "tips": [], "members": [], "departments": [], "files": [], "children": [], "stat_field": [], "sum_field": [], "related_approval": [], "students": [], "classes": [] }, "require": 0 } ] 无论怎么传都不行,而且一点将附件组件变成必填,我即使把所有的可以填的字段都填上了,都会报错 例如这样 审批申请: "contents": [ { "control": "File", "id": "File-1660720417887", "files": [ { "file_id": "36UHIzbGMaQa0RPrOnL5neD7fuz7_XOwpGyY2Iv0e_X8fct5b_huH6sjkyvv2h5SI", "file_name":"首页 - Google Chrome 2022-03-09 20-39-38.mp4", "file_size":"7862711", "file_type":"video", "file_url":"/C:/Users/51191/Videos/Captures/首页 - Google Chrome 2022-03-09 20-39-38.mp4" } ] } ] 返回的值: { "errcode": 301025, "errmsg": "get approval param error:File-1660720417887 is required" } 现在就是特别的疑惑,这个附件组件我一直都用不了。
2022-08-17 - 调试OA提交审批申请接口,使用请假模板,提交时总报错Text-1659066037377,怎么解决?
请求地址:https://qyapi.weixin.qq.com/cgi-bin/oa/applyevent 错误信息:{ "errcode": 301025, "errmsg": "get approval param error:has no require control Text-1659066037377" } 希望有大佬能指出json有什么问题,谢谢了! 提交的json信息 { "creator_userid": "HuangZeBin", "template_id": "C4RYz4VMF4sQii2UErmhnWRUs8A3sJ8kfi6xfr8cg", "use_template_approver": 1, "choose_department": 1, "notify_type": 1, "apply_data": { "contents": [{ "control": "Vacation", "id": "vacation-1563793073898", "vacation": { "selector": { "type": "single", "options": [{ "key": "3", "value": [{ "text": "病假", "lang": "zh_CN" }] }], "exp_type": 0 }, "attendance": { "date_range": { "type": "hour", "new_begin": 1568077200, "new_end": 1568368800, "new_duration": 291600 }, "type": 1 } } }, { "control": "Textarea", "id": "item-1497581399901", "value": { "text": "" } }, { "control": "File", "id": "item-1497581426169", "files": [{ "file_id": "1G6nrLmr5EC3MMb_-zK1dDdzmd0p7cNliYu9V5w7o8K1aaa" }] } ] }, "summary_list": [{ "summary_info": [{ "text": "摘要第1行", "lang": "zh_CN" }] }, { "summary_info": [{ "text": "摘要第2行", "lang": "zh_CN" }] }, { "summary_info": [{ "text": "摘要第3行", "lang": "zh_CN" }] } ] }
2022-07-30