public AppIdOwnerIdTypeDTO GetAppOwnerInfo(System.Guid appId, ContextDTO contextDTO = null) { AppIdOwnerIdTypeDTO applicationDTO = null; contextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); try { applicationDTO = RedisHelper.GetHashValue <AppIdOwnerIdTypeDTO>(RedisKeyConst.AppOwnerType, appId.ToString()); if (applicationDTO != null && applicationDTO.OwnerId != Guid.Empty) { return(applicationDTO); } Jinher.AMP.App.ISV.Facade.AppManagerFacade appManagerFacade = new App.ISV.Facade.AppManagerFacade(); appManagerFacade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); applicationDTO = appManagerFacade.GetAppOwnerType(appId); if (applicationDTO != null) { RedisHelper.AddHash(RedisKeyConst.AppOwnerType, appId.ToString(), applicationDTO); } } catch (Exception ex) { LogHelper.Error(string.Format("APPSV.GetAppOwnerInfo服务异常:获取应用信息异常。 appId:{0}", appId), ex); } return(applicationDTO); }