收藏
回答

提交审批申请API测试返回301055状态码, 请问是什么问题?

API:https://work.weixin.qq.com/api/doc/90000/90135/91853

{

  "creator_userid": "duyizhen",

  "template_id": "Bs7wzz6rbNCXZbRi4NN9*********D5jrjqjE",

  "use_template_approver": 0,

  "approver": [{

      "attr": 2,

      "userid": ["zhangyan"]

    },

    {

      "attr": 1,

      "userid": ["lizhong"]

    }

  ],

  "notifyer": ["liujusen"],

  "notify_type": 1,

  "apply_data": {

    "contents": [{

        "control": "Text",

        "id": "Text-1592831490119",

        "title": [{

          "text": "文本控件",

          "lang": "zh_CN"

        }],

        "value": {

          "text": "文本填写的内容"

        }

      },

      {

        "control": "Number",

        "id": "Number-1592831515378",

        "title": [{

          "text": "测试数字",

          "lang": "zh_CN"

        }],

        "value": {

          "new_number": "700"

        }

      }

    ]

  },

  "summary_list": [{

      "summary_info": [{

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

        "lang": "zh_CN"

      }]

    },

    {

      "summary_info": [{

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

        "lang": "zh_CN"

      }]

    },

    {

      "summary_info": [{

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

        "lang": "zh_CN"

      }]

    }

  ]

}

return msg

{ "errcode": 301055, "errmsg": "no approval auth, hint: [1592881858_59_90e96b86aa1c2797a395066c1051305d], from ip: 9.84.250.5, more info at https://open.work.weixin.qq.com/devtool/query?e=301055" }

{ "errcode": 301055, "errmsg": "no approval auth, hint: [1592881854_59_0aa3497e13ad757f8e5b6433ffeb2b3b], from ip: 9.84.250.5, more info at https://open.work.weixin.qq.com/devtool/query?e=301055" }

{ "errcode": 301055, "errmsg": "no approval auth, hint: [1592881686_59_777227de4987827fd64327c496cc5c80], from ip: 9.84.250.5, more info at https://open.work.weixin.qq.com/devtool/query?e=301055" }

PS:

通过获取模板详情API可以查询到模版信息, 同时手动提交审批也是没有问题的

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

1 个回答

  • CAFEBABE
    CAFEBABE
    06-23

    已解决, creator_userid必须传ID 例如我自己的ID是A00646, 不能传拼音, 传拼音会报错

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