收藏
回答

小程序下单失败,jsapi报错400,公众号ID”必填性规则校验失败,此字段为必填项

org.springframework.web.client.HttpClientErrorException$BadRequest: 400 Bad Request: [{"code":"PARAM_ERROR","detail":{"location":null,"value":""},"message":"输入源“/appid”映射到字段“公众号ID”必填性规则校验失败,此字段为必填项"}]

请求代码如下:

打印参数:

url=>https://api.mch.weixin.qq.com/v3/pay/transactions/jsapi

data=>{"amount":{"total":10000,"currency":"CNY"},"mchid":"1********5","out_trade_no":"MLSHOMS1730272234827OY9XXPRECHAR","appid":"wx******1","description":"用户充值","attach":{"operation":"RECHARGE"},"notify_url":"https://2********/notify","payer":{"openid":"o_YEX7Ut*******"}}

auth=>mchid="1****5",nonce_str="624***e2",timestamp="1730272235",serial_no="6****25",signature="RpeyaeiXEhJJ5ABxiZ0FO5QK37y3WJoOrxD4lgBIBB/HZHULwdKijLijWhe2IpsiZKAcdJ0Cx3Ksz136zSlJgXOGrW1vaHarl2GRKCBw5Xm+1XC4peDPIx0ehZJrFkO3DlFhF5GPOnDsd2/R+hkXOvhrNluXBLGXxawWgZp4vLXnus0QVGJwrgy681buK1zU8Eh6yq8iYV8dDZ586KodjYJWWmFSvd09t6Ozh1on2RqGa+IvpNP/soCFvMxK+WNbdDc9aXZG1unlp1XIQ6bnmZeTGaSyJJwlb1lgD/qLXNmVFqKINuQzc0JdxLVaTv4xGLXYiaQp7bZqn7MWtg+ObA=="


回答关注问题邀请回答
收藏

1 个回答

  • Memory (私信不回复)
    Memory (私信不回复)
    星期三 15:24

    看起来应该是attach字段的问题

    星期三 15:24
    有用
    回复
登录 后发表内容