收藏
回答

调试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"

      }]

    }

  ]

}


回答关注问题邀请回答
收藏
登录 后发表内容