- access_token在公众号里是有调用限制的,现在每天是2000条
- 默认生成一条access_token可以使用2小时
- 同一ac、ap调用新的at会导致旧的at失效,不管at的生存期有没有结束
- 用来判断at是否能用的接口是没有使用限制的
- 在使用at之前最好用无限接口判断一下
/// <summary>
/// 判断at是否有效
/// </summary>
/// <param name="at"></param>
/// <returns></returns>
public bool atCanUse(string at)
{
string text = "https://api.weixin.qq.com/cgi-bin/getcallbackip?access_token=" + at;
string json字符串 = HttpService.Get(text);
string errcode = this.ty.GetJsonStrValue(json字符串, "errcode");
if (errcode == "you made error,Man!")
return true;
else
return false;
}