private static async Task <bool> MessageSend(List <WeChatMessage> MessagesList) { SharedManager SM = new SharedManager(); foreach (WeChatMessage messageItem in MessagesList) { WeChatMessage objper = new WeChatMessage(); objper.touser = messageItem.touser; //要发送微信的人员姓名 objper.text = messageItem.text; //要发送的微信内容 objper.safe = 0; try { string postData = JsonConvert.SerializeObject(objper); string result = SM.PostUrl(WeChatConfig.WeChatUrl, postData); List <string> objwx = JsonHelper.GetJson(result); if (Convert.ToInt32(objwx[1]) != 0) { break; } } catch (Exception ex) { return(false); } } return(true); }