收藏
回答

为什么我小程序回调的不是xml而是一个json呢?

回调返回给我的是

{"id":"3656basadasdasd5b92e","create_time":"2023-04-26T19:09:19+08:00","resource_type":"encrypt-resource","event_type":"TRANSACTION.SUCCESS","summary":"支付成功","resource":{"original_type":"transaction","algorithm":"AEAD_AES_256_GCM","ciphertext":"Y2x+w0/xOcNmxd88bZ撒大苏打实打实的bx6yVKjDU4K1SDGxcOPz42sBTelmW3rTxK87ASDsadQbM8zk37tdf1pIimSn70oO0mluNAi6iRqiDTX/WB6YwVLwpAXBuE/wre4vlqiMAy56d68XFfrs9bK81FDaq+AxoV3YErNO2ztJg0kFGh6rRN6KMkyleb6/CXzmEfs3AzVCEEvGf0SY9HiNcY8X4H9F+xa/cHDEiUA8FrC9qdLqwEOcHWCHk1EE33AF67BMk7g1IvWwP22GWri1sCdVpW7VJhLvRZfVtc6M3wGFSKYiGSjU0XBsOAsLMH5+lvHarqh/P42zRTOv02ynhjOUKBwJbhpsRr9UXb6eAg==","associated_data":"transaction","nonce":"ASDASDASD"


不应该是一个xml格式吗?

<xml><appid><![CDATA[sdasdsad]]></appid>

<bank_type><![CDATA[CIB_DEBIT]]></bank_type>

<cash_fee><![CDATA[1]]></cash_fee>

<fee_type><![CDATA[CNY]]></fee_type>

<is_subscribe><![CDATA[Y]]></is_subscribe>

<mch_id><![CDATA[sadsad]]></mch_id>

<nonce_str><![CDATA[sadsadasd]]></nonce_str>

<openid><![CDATA[asdsadsasad]]></openid>

<out_trade_no><![CDATA[121212]]></out_trade_no>

<result_code><![CDATA[SUCCESS]]></result_code>

<return_code><![CDATA[SUCCESS]]></return_code>

<sign><![CDATA[sadasdsad]]></sign>

<time_end><![CDATA[121212]]></time_end>

<total_fee>1</total_fee>

<trade_type><![CDATA[MWEB]]></trade_type>

<transaction_id><![CDATA[12121212]]></transaction_id>

</xml>



最后一次编辑于  2023-04-26
回答关注问题邀请回答
收藏

1 个回答

  • Mr.Zhao
    Mr.Zhao
    2023-04-26

    小程序可以配置xml和json的

    2023-04-26
    有用
    回复
登录 后发表内容