辛苦了,谢谢大神
使用/wxa/game/getbalance接口没法接通?api地址https://api.weixin.qq.com/wxa/game/getbalance post数据包 {"openid":"oG4AF46rd_zLZ51dNFLIozEYOkOs","offer_id":"1450045083","ts":1672038196,"zone_id":"1","env":"0"} 生成pay_sign的字符串: /wxa/game/getbalance&{"openid":"oG4AF46rd_zLZ51dNFLIozEYOkOs","offer_id":"1450045083","ts":1672038196,"zone_id":"1","env":"0"} 生成的pay_sign为 :f073302b10e50a552b5ac9b8376d17ce5731d7696d0b480e05a2ae4315aebcc2 生成登录态签名signature的字符串为{"openid":"oG4AF46rd_zLZ51dNFLIozEYOkOs","offer_id":"1450045083","ts":1672038196,"zone_id":"1","env":"0"}, 用session_key后生成的签名为:bf9c4a7ff69a40635d986138984f1faa84f43467cc14ed819e6ec1b4fa3be7a2 最终生成的url如下:https://api.weixin.qq.com/wxa/game/getbalance?access_token=64_WTHABTRMl-HOTPFTyoi1ZIwHe1ap7Lt9cR2_CpBXqFho4qvr0iZgFB_Dg46p0cPZEA1Rf4z_en0PcE269LAU_XeBFgwQUufDZoqdlF3LAttE6YmY0Ru0rqJJyYQBFLeAFAWAG&signature=bf9c4a7ff69a40635d986138984f1faa84f43467cc14ed819e6ec1b4fa3be7a2&sig_method=hmac_sha256&pay_sig=f073302b10e50a552b5ac9b8376d17ce5731d7696d0b480e05a2ae4315aebcc2 post数据为raw_data: {"openid":"oG4AF46rd_zLZ51dNFLIozEYOkOs","offer_id":"1450045083","ts":1672038196,"zone_id":"1","env":"0"} content-type为:application/json 最后却报如下错误:{"errcode":90018,"errmsg":"post data type not right traceid: 0 rid: 63a94734-5e6e8182-15ab67b4"} 这到底是哪里出问题呢?在线急求
2022-12-26