/// <summary> /// 刷新access_token /// </summary> /// <returns></returns> public void RefreshToken() { var rel = QyAPI.GetToken(CorpID, Secret); if (!string.IsNullOrEmpty(rel.access_token)) { if (TokenPool.ContainsKey(CorpID)) { TokenPool[CorpID] = rel.access_token; } else { TokenPool.Add(CorpID, rel.access_token); } } else { throw new BusinessBaseException(ExceptionCode.WechatCannotDelete); } access_token = rel.access_token; }