/// <summary>
        /// 发送消息
        /// </summary>
        /// <returns></returns>
        public static void SendMessage(int tenantId, int userId, string message, string url = "")
        {
            var keyModels = new List <MessageKey>();

            keyModels.Add(new MessageKey {
                Key = "content", Value = message
            });
            if (!string.IsNullOrWhiteSpace(url))
            {
                keyModels.Add(new MessageKey {
                    Key = "link", Value = url
                });
            }
            AddMessageModel messageModel = new AddMessageModel()
            {
                AppId         = 926,
                AppType       = 926,
                FromUserId    = userId,
                IsSign        = false,
                TemplateId    = "32",
                TemplateTitle = "AppConnect通知",
                TenantId      = tenantId,
                ToUserIds     = userId.ToString(),
                Values        = keyModels
            };

            SendMessage(tenantId, messageModel);
        }
        private static void SendMessage(int tenantId, AddMessageModel model)
        {
            ArgumentHelper.AssertNotNull(model);
            ArgumentHelper.AssertPositive(tenantId);
            ArgumentHelper.AssertPositive(model.FromUserId);

            string url = string.Format(TitaApiUrl + "/api/v1/{0}/{1}/message", tenantId, model.FromUserId);

            try
            {
                var resultStr = HttpClientHelper.HttpPost(url, model);
                var result    = JsonConvert.DeserializeObject <ApiResult <object> >(resultStr);
                if (result.code != 0)
                {
                    AppConnectLogHelper.ErrorFormat("Tita发送消息接口出错!租户:{0},发送人:{1}", tenantId, model.FromUserId);
                }
            }
            catch (Exception ex)
            {
                AppConnectLogHelper.ErrorFormat("发送消息出错!接口Url:{0},租户:{1},发送人:{2},异常信息:{3}", url, tenantId, model.FromUserId, JsonConvert.SerializeObject(ex));
            }
        }