收藏
回答

301025 调用内置审批出错,啥问题?

使用网页右上角自带的工具,调用发起审批时报错。

请求地址 https://qyapi.weixin.qq.com/cgi-bin/oa/applyevent 请求方式:POST

body内容如下:

{

  "creator_userid": "color_starry_sky",

  "template_id": "3TkapapmFstFPbzas9gVAFSYbcYBjEzjmoXa8oLC",

  "use_template_approver": 0,

  "approver": [{

      "attr": 2,

      "userid": ["color_starry_sky", "color_starry_sky"]

    },

    {

      "attr": 1,

      "userid": ["color_starry_sky"]

    }

  ],

  "notifyer": ["color_starry_sky", "color_starry_sky"],

  "notify_type": 1,

  "apply_data": {

    "controls": [{

      "property": {

        "control": "Text",

        "id": "Text-1593752675801",

        "title": [{

          "text": "文本",

          "lang": "zh_CN"

        }],

        "placeholder": [{

          "text": "",

          "lang": "zh_CN"

        }],

        "require": 0,

        "un_print": 0

      }

    }]

  }

}

错误情况如下,

调用接口提交审批申请请求地址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, hint: [1593752989_61_f0259b840f6b82f055724c7905cb6d86], from ip: 100.66.97.245, more info at https://open.work.weixin.qq.com/devtool/query?e=301025

content-type: application/json; charset=UTF-8

content-length: 203

返回结果{ "errcode": 301025, "errmsg": "get approval param error, hint: [1593752989_61_f0259b840f6b82f055724c7905cb6d86], from ip: 100.66.97.245, more info at https://open.work.weixin.qq.com/devtool/query?e=301025" }


请问是什么问题?谢谢!

回答关注问题邀请回答
收藏

3 个回答

  • 微喵网络
    微喵网络
    2020-07-03

    看描述是参数错误

    2020-07-03
    有用 1
    回复
  • 枫灵🍀
    枫灵🍀
    2021-01-25

    {

    "creator_userid": "15989014282",

    "template_id": "open_3Tmm59LnAScBVmVySUffGUwtXdcDjHopiT9fGMta",

    "use_template_approver": 1,

    "approver": [],

    "notify_type": 1,

    "apply_data": {

    "contents": [{

    "control": "Selector",

    "id": "item-1611131013242",

    "value": {

    "selector": {

    "type": "single",

    "options": [{

    "key": "option-2422472220"

    }]

    }

    }

    }, {

    "control": "Text",

    "id": "item-1494250768190",

    "value": {

    "text": "TEST-20210122-0003"

    }

    }, {

    "control": "Text",

    "id": "item-1494250800464",

    "value": {

    "text": "林客户"

    }

    }, {

    "control": "Text",

    "id": "item-1494250801595",

    "value": {

    "text": "无"

    }

    }, {

    "control": "Text",

    "id": "item-1494250798972",

    "value": {

    "text": "林名称"

    }

    }, {

    "control": "Text",

    "id": "item-1611130760260",

    "value": {

    "text": "直销合同"

    }

    }, {

    "control": "Number",

    "id": "item-1611130897994",

    "value": {

    "new_number": "100"

    }

    }, {

    "control": "Date",

    "id": "item-1611130947986",

    "value": {

    "date": {

    "type": "hour",

    "s_timestamp": "1615340308"

    }

    }

    }, {

    "control": "Date",

    "id": "item-1611130964651",

    "value": {

    "date": {

    "type": "hour",

    "s_timestamp": "1638986788"

    }

    }

    }, {

    "control": "Textarea",

    "id": "item-1611130984498",

    "value": {

    "text": "备注"

    }

    }]

    },

    "summary_list": []

    }



    提交审核接口,请问哪里有问题

    2021-01-25
    有用
    回复
  • 战强
    战强
    2020-07-03

    参数也是调取之前获取模板得到的,把content拷贝在接口中,不知有何错误?谢谢

    2020-07-03
    有用
    回复
登录 后发表内容
问题标签