//api.weixin.qq.com/cgi-bin/stable_token
获取过来的token,存起来后, 第一次走后续的业务,能发送消息成功
后续从缓存中获取toen后,马上就提示:}
{"errcode":40001,"errmsg":"invalid credential, access_token is invalid or not latest, could get access_token by getStableAccessToken, more details at https://mmbizurl.cn/s/JtxxFh33r rid: 68faede9-4dc6e1c6-2287f2c6"}
可我都已经是使用了getStableAccessToken接口了哦,咋还是说token失效或者不是最新的token
String wx_new_token_url = "https://api.weixin.qq.com/cgi-bin/stable_token";
Map<String, Object> params = new HashMap<>();
params.put("grant_type", "client_credential");
params.put("appid", appId);
params.put("secret", secret);
// params.put("force_refresh",true);
String result = HTTPClient.doPost(wx_new_token_url, JSON.toJSONString(params));
