收藏
回答

企业微信提交审批申请返回301025,是我格式有问题吗?

{ "errcode": 301025, "errmsg": "get approval param error:invalid control id Selector-1571833668106" }

格式如下:

{

  "creator_userid": "XuLan",

  "template_id": "C4RYzCPX9h9GXHuzr5FR1eChWK56V5zYvy3dQNde9",

  "use_template_approver": 0,

  "approver": [{

    "attr": 1,

    "userid": ["XuLan"]

  }],

  "apply_data": {

    "contents": [{

        "control": "Selector",

        "id": "Selector-1571833668106",

        "value": {

          "selector": {

            "type": "single",

            "options": [{

                "key": "option-1571833668106",

                "value": [{

                    "text": "企业单位",

                    "lang": "zh_CN"

                  },

                  {

                    "text": "Enterprise entity",

                    "lang": "en"

                  }

                ]

              }


            ]

          }

        }

      }, {

        "control": "Text",

        "id": "Text-1571833547093",

        "value": {

          "text": "抬头"

        }

      },

      {

        "control": "Text",

        "id": "Text-1571833555317",

        "value": {

          "text": "税号"

        }

      },

      {

        "control": "Money",

        "id": "Money-1571833750552",

        "value": {

          "new_money": "999"

        }

      }




    ]

  },

  "summary_list": [{

      "summary_info": [{

        "text": "摘要第1行",

        "lang": "zh_CN"

      }]

    }



  ]

}

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

1 个回答

  • 吾
    2022-08-01

    Selector控件里的options不要放value试试

    2022-08-01
    有用
    回复
登录 后发表内容