调用接口返回错误61023
发布于 6 年前 作者 bdu 11670 次浏览 来自 问答

获取(刷新)授权公众号或小程序的接口调用凭据(令牌)

POST数据示例:

{
"component_appid":"appid_value",
"authorizer_appid":"auth_appid_value",
"authorizer_refresh_token":"refresh_token_value",
}

按照这个格式提交数据

“{“component_appid”:“wx3eb8bef65459167f”,“authorizer_appid”:“wx0f3d61c3a52cf8a4”,“authorizer_refresh_token”:“refreshtoken@@@hYUknSbZXREq3MyIK8pczxTkSNMGMj4t5TVmsAy6k_8”,}”

“{“component_appid”:“wx3eb8bef65459167f”,“authorizer_appid”:“wx0f3d61c3a52cf8a4”,“authorizer_refresh_token”:“refreshtoken@@@hYUknSbZXREq3MyIK8pczxTkSNMGMj4t5TVmsAy6k_8”}”

两种格式都提交了

返回:

array(2) {

["errcode"]=>

int(61023)

["errmsg"]=>

string(47) "refresh_token is invalid hint: [VaJsIa0995e544]"

}

5、将第三方提交的代码包提交审核(仅供第三方开发者代小程序调用)

请求方式: POST(请使用https协议)

微信接口获取的微信小程序的page

url: https://api.weixin.qq.com/wxa/get_page?access_token=TOKENarray(3) {  [“errcode”]=>  int(0)  [“errmsg”]=>  string(2) “ok”  [“page_list”]=>  array(2) {    [0]=>    string(17) “pages/index/index”    [1]=>    string(15) “pages/logs/logs”  } }

微信接口获取的微信小程序的可允许提交的分类

https://api.weixin.qq.com/wxa/get_category?access_token=TOKENarray(3) {  [“errcode”]=>  int(0)  [“errmsg”]=>  string(2) “ok”  [“category_list”]=>  array(1) {    [0]=>    array(2) {      [“first_class”]=>      string(6) “餐饮”      [“second_class”]=>      string(6) “外卖”    }  } }

将第三方提交的代码包提交审核传递的分类

url: https://api.weixin.qq.com/wxa/submit_audit?access_token=TOKEN

array(1) {  [“item_list”]=>  array(1) {    [0]=>    array(5) {      [“address”]=>      string(17) “pages/index/index”      [“tag”]=>      string(13) “学习 生活”      [“first_class”]=>      string(6) “餐饮”      [“second_class”]=>      string(6) “外卖”      [“title”]=>      string(6) “首页”    }  } }

接口返回的内容 array(2) {  [“errcode”]=>  int(85008)  [“errmsg”]=>  string(52) “category is in invalid format hint: [_L7Eca0773e626]” }        

2 回复

传入汉字的时候,不要转码

哥们,你的 这个 category is in invalid format hint  问题 解决了吗

回到顶部