SP_MERCHANT_APPLICATION 和 SUB_MERCHANT_APPLICATION 都选择了对应的 application_info 字段为什么请求还是提示 media_id对应的图片不存在
请求参数:{"json":{"sub_mchid":"1661833981","out_apply_no":"1709965568","application_info":[{"application_type":"SP_MERCHANT_APPLICATION","application_media_id":"V1_hr1nXMbar-0YaiTL-efZqh4VZf_dHmMiUg6v2JYngMReXDWNDbSBIeCMkhBwFvkxj2mokY57ihhET3D7lINlNQLJOzY9eQhmv6giwKWUAjk"},{"application_type":"SUB_MERCHANT_APPLICATION","application_media_id":"V1_rFgM8-TnvUO3A2udBuhr9R4VZf_dHmMWSVhOOm0PR3W8u3Em0vofIbOKkhBwFvkxtjDTNpdztInUDv2lb_SsWgLJOzY9eQhmv6giwKWUAjk"}]}}
返回数据:array(2) { ["code"] => string(15) "INVALID_REQUEST" ["message"] => string(32) "media_id对应的图片不存在"}
同样的问题,总是显示media_id图片不存在,参数检查好多遍了没有问题啊
这报错看起来是图片上传的有问题
接口的字段说明不是很清楚?选择 SUB_MERCHANT_APPLICATION,你还是需要传 application_media_id 参数(把对应模版内容拍照后,通过上传图片接口返回的 media_id赋值)
SUB_MERCHANT_APPLICATION 传子商户的模板照片id
https://support.pay.weixin.qq.com/online-service?from=wechatpay