https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=APPID&secret=APPSECRET
获取access_token
access_token=60_XYE_lRa_9cI65srOrsFIARpzzSSnWguinmc4b1dTBQlXvfBAmdpQfN_7KTTsYh0vKDOtjmVMJ6ra_CntFwTGzoVLEofWeUzxbibxmLsSNCn_jFxdtkc7MScHEiQJnUVbZvjAClgXmZfvimnhSLAdAAAMFU
security.msgSecCheck-v1
https://developers.weixin.qq.com/miniprogram/dev/framework/security.msgSecCheck-v1.html
检测
一直提示{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest rid: 6327d0cc-1cb6b8ca-6745c311"}
你好,报错40001,说明access_token无效或不是最新的,请确保使用最新的access_token,可能过期了,或者是其他地方重新获取了access_token,导致token无效了
可参考:https://developers.weixin.qq.com/community/develop/article/doc/000e0e0d52c4d88a0b2c583895b813
这个不是2小时有效么,怎么用着用着就无效了,我这边也做了缓存时间处理