获取access_token 41002错误

发布于 8 年前作者 chao0712405 次浏览最后编辑 8 年前来自 ask

https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=。。。。。。&secret=。。。。


{"errcode":41002,"errmsg":"appid missing hint: [y.v26a0640e578]"}


localhost已经成功了,但是放到服务器上就出问题了



3 回复
ryi
ryi1 楼6 年前

参数是对的,因为locahost测试了是可以正确获取的,但是部署到线上服务器就出问题了

curl https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=。。。&secret=


{"errcode":41002,"errmsg":"appid missing hint: [y.v26a0640e578]"}

songyan
songyan2 楼6 年前

大神怎么解决的啊?也遇到同样的啦,谢谢!

pingzhu
pingzhu3 楼6 年前

appid和secret填对了么?

从返回结果上看是缺失了appid