数据结构:
{
"creator_userid": "PengQing",
"template_id": "C4NvGy3NE99xY46xV5arUoLzxgwerNz2MbLTQDfaP",
"use_template_approver": "0",
"choose_department": "7",
"approver": [{
"attr": "1",
"userid": ["PengQing"]
}],
"notify_type": "1",
"apply_data": {
"contents": [{
"control": "Number",
"id": "Number-1635994284502",
"value": {
"new_number": "10030"
}
}, {
"control": "Money",
"id": "Money-1635994298613",
"value": {
"new_money": "5000"
}
}, {
"control": "Text",
"id": "Text-1635999673223",
"value": {
"text": "HKD"
}
}, {
"control": "Text",
"id": "Text-1635994353700",
"value": {
"text": "T1636361399"
}
}, {
"control": "File",
"id": "File-1636358214395",
"value": {
"files": {
"file_id": "3wT8ZGyr4UDskUWApWkQgEYGoR8r4VZEATS9d1k3eG8YBg5NOQMxxMz_NM2TaWz4R"
}
}
}]
},
"summary_list": {
"summary_info": {
"text": "test",
"lang": "zh_CN"
}
}
}
返回结果:
调用接口 提交审批申请
请求地址 https://qyapi.weixin.qq.com/cgi-bin/oa/applyevent
返回状态
status: HTTP/1.1 200 OK
date: Mon, 08 Nov 2021 08:50:27 GMT
content-type: application/json; charset=UTF-8
content-length: 113
connection: close
error-code: 301025
error-msg: Warning: wrong json format. get approval param error:File-1636358214395 is required
返回结果 { "errcode": 301025, "errmsg": "Warning: wrong json format. get approval param error:File-1636358214395 is required" }
我也遇到了类似的问题,不知道该怎么解决。