调用https://api.weixin.qq.com/wxa/getwxacode?access_token=
接口获取返回的结果集
{
"body":"破损的二维码图片二进制内容",
"headers": {
"Connection": [
"keep-alive"
],
"Date": [
"Wed, 15 May 2024 05:53:22 GMT"
],
"Content-Type": [
"application/json; encoding=utf-8"
],
"RetKey": [
"11"
],
"LogicRet": [
"61004"
],
"Content-Length": [
"119"
]
},
"statusCode": "OK",
"statusCodeValue": 200
}
破损的话可能是token不正确或过期了
返回的是json字符串,解析出来帮帮自己吧