收藏
回答

企业微信审批申请调用错误代码301025?,是否是我数据格式有问题

"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"
                    }
                }
            }
        ]
    }
}
最后一次编辑于  03-15
回答关注问题邀请回答
收藏

2 个回答

  • 企业微信运营专员-千夜
    企业微信运营专员-千夜
    03-17

    你好,是否有报错的hint,可以贴下看下日志

    03-17
    有用
    回复
  • cheer up
    cheer up
    04-19

    调用接口提交审批申请请求地址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" }

    04-19
    有用
    回复
登录 后发表内容
问题标签