"errcode":301025,"errmsg":"Warning: wrong json format. get approval param error:no applydata content"
格式如下:
{
creator_userid: "echo",
template_id: "3TmmD5MLdmershT9RMgcQ3ReurmkWbxHxT48jRqN",
use_template_approver: 1,
approver: "",
apply_data: {
contents: [
{
control: "Selector",
id: "Selector-1614674267846",
value: {
selector: {
type: "multi",
options: [
{
key: "option-1614674267846"
}
]
}
}
},
{
control: "Money",
id: "Money-1614674457165",
value: {
new_money: 600
}
},
{
control: "Selector",
id: "Selector-1614674513669",
value: {
selector: {
type: "multi",
options: [
{
key: "option-1614674513669"
}
]
}
}
},
{
control: "Date",
id: "Date-1614674777149",
value: {
date: {
type: "day",
s_timestamp: "1569859200"
}
}
}
]
}
}
你好,是否有报错的hint,可以贴下看下日志
调用接口提交审批申请请求地址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:invalid control id item-1618455728781
content-type: application/json; charset=UTF-8
content-length: 92
返回结果{ "errcode": 301025, "errmsg": "get approval param error:invalid control id item-1618455728781" }