字节小程序
开发者社区
小程序小游戏
登录
查询支付订单的状态报错,返回结果-15101

查询支付订单的状态报错,返回结果-15101

4271浏览作者: User7233295638124511293

appoid:tt56a42019c99cf55802

字节查询支付订单的状态报错,相关代码如下:


请求地址:https://developer.toutiao.com/api/apps/game/payment/queryPayState

请求参数:{

["orderno"] => string(22) "2021042516528780573063"

["access_token"] => string(324) "0801129d0133626439333739306536646638383936386231643561613862666234376663636363613661663538323136376536653037373664303534386338623164616363616335326563313862663135383037393066353230646165346533633738393933643638636137323135316533666334633466353466383430373435373736323463626264653536373534393432336136333065333130653439353838"

}

返回结果:{"err_no":"-15101","message":"bad orderno"}

走post的请求的,请求参数的格式如下:

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, $url);

curl_setopt($ch, CURLOPT_HEADER, 0);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_POSTFIELDS, $postdata);

curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-type:application/json;charset=utf-8'));

$res = curl_exec($ch);


辛苦帮忙看下是什么原因,应该如何检查修改,感谢

最后一次编辑于 2021年04月26日
加载中