public virtual AppResult GetToken(string appcode) { var app = _appService.GetApp(appcode); var accessToken = AccessTokenManager.GetToken(CorpID, app.SecretValue); return(new AppResult { AccessToken = accessToken, AgentId = app.WeChatAppID }); }