报错信息:{"errcode":60001,"errmsg":"department invalid length, hint: [1616467846_161_742331501281ebf59468ff6484a93b2b], from ip: 120.230.126.55, more info at https://open.work.weixin.qq.com/devtool/query?e=60001"}
//代码块:
const request = require("request-promise")
request({
methods: "POST",
uri: "https://qyapi.weixin.qq.com/cgi-bin/department/create",
qs:{
access_token: `***`
},
json:true,
headers:{
'User-Agent': 'Request-Promise',
"content-type": "application/json"
},
body:JSON.stringify(req.body)
}).then( res => {
console.log(`res:${JSON.stringify(res)}`)
}).catch( err => {
console.log(`报错${err}`)
})
//请求参数: