微信支付 V3 接口中上传图片时,"图片文件”必填性规则校验失败, 什么原因?
Content-Type: multipart/form-data; boundary=Xm7QlFD92I4wyKj6T+3j-7UM
Content-Type: application/json
Content-Disposition: form-data; name="meta"
{"filename":"logo.png","sha256":"515828eec0c103968e543862f49fb23ed6748e09b93a817190f31f2c7d7861a5"}
--Xm7QlFD92I4wyKj6T+3j-7UM
Content-Type: image/png
Content-Disposition: form-data; filename="logo.png"; name="file"
PNG二进制内容
上面就是请求的内容,但总是报下面错误: {"code":"PARAM_ERROR","detail":{"location":"body","value":""},"message":"输入源“/body/file”映射到字段“图片文件”必填性规则校验失败,此字段为必填项"}
不知道是啥原因?