Пример #1
0
 public Jinher.AMP.WCP.Deploy.CustomDTO.DeveloperInfoDTO GetDeveloperInfo(Guid appId)
 {
     try
     {
         //通过appId调用WCP接口获取微信公众号Id、密钥
         Jinher.AMP.WCP.ISV.Facade.WChatDeveloperFacade   wChatDeFacade = new WCP.ISV.Facade.WChatDeveloperFacade();
         Jinher.AMP.WCP.Deploy.CustomDTO.DeveloperInfoDTO result        = wChatDeFacade.GetDeveloperInfo(appId);
         return(result);
     }
     catch (Exception ex)
     {
         LogHelper.Error(string.Format("WCPSV.GetWXAccessToken服务异常:获取微信设置。 appId:{0}", appId), ex);
         return(null);
     }
 }
Пример #2
0
 public WCP.Deploy.DevpInfoDTO GetAppkey(Guid appId)
 {
     try
     {
         //通过appId调用WCP接口获取微信公众号Id、密钥
         Jinher.AMP.WCP.ISV.Facade.WChatDeveloperFacade wChatDeFacade = new WCP.ISV.Facade.WChatDeveloperFacade();
         WCP.Deploy.DevpInfoDTO weDevpInfo = wChatDeFacade.GetAppkey(appId);
         return(weDevpInfo);
     }
     catch (Exception ex)
     {
         LogHelper.Error(string.Format("WCPSV.GetAppkey服务异常:获取微信设置。 appId:{0}", appId), ex);
         return(null);
     }
 }