public bool PushSysMessageToUsers(Jinher.AMP.WCP.Deploy.CustomDTO.CusNewsPushDTO msgDto) { bool result = false; try { WChatDeveloperFacade facade = new WChatDeveloperFacade(); facade.ContextDTO = AuthorizeHelper.CoinInitAuthorizeInfo(); Jinher.AMP.WCP.Deploy.CustomDTO.ReturnInfoDTO searchResult = facade.PushWXPlusMsg(msgDto); if (searchResult != null && searchResult.IsSuccess) { result = true; } else { if (searchResult != null) { LogHelper.Debug(string.Format("WCPSV.PushWXPlusMsg服务异常:发送微信消息异常。 msgDto:{0},接口返回:{1}。", JsonHelper.JsonSerializer(msgDto), searchResult.Message)); } } } catch (Exception ex) { LogHelper.Error(string.Format("WCPSV.PushWXPlusMsg服务异常:发送微信消息异常。 msgDto:{0}", JsonHelper.JsonSerializer(msgDto)), ex); } return(result); }
public bool AddWXMenu(Guid appId, string menuJson) { try { WCP.ISV.Facade.WChatDeveloperFacade facade = new WChatDeveloperFacade(); return(facade.AddWXMenu(appId, menuJson)); } catch (Exception ex) { LogHelper.Error(string.Format("WCPSV.AddWXMenu服务异常:清加微信菜单。 menuJson:{0}", menuJson), ex); return(false); } }