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
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"}
这到底是哪里出问题呢?在线急求
参数类型不对啊,对照文档一个一个类型检查,比如你这里 env类型文档写着"number"你传个string做啥。
你这个接口文档在哪找的,可以发下链接?
辛苦了,谢谢大神