上图可见,调用腾讯ai识别身份证时,出现4096参数非法问题。

解决方法:

只需要在请求接口时,在headers头部设置 "Content-Type" = "application/x-www-form-urlencoded";