Пример #1
0
        public string SendMessageOnShopAudited(string destination, MessageShopInfo info)
        {
            MessageContent messageContentConfig = SiteMessageCore.GetMessageContentConfig();
            string         str = messageContentConfig.ShopAudited.Replace("#userName#", info.UserName).Replace("#companyName#", info.CompanyName).Replace("#siteName#", info.SiteName);

            SendMessage(destination, string.Concat(info.SiteName, "供应商(", info.CompanyName, ")已成功提交审核"), str, false);
            return(str);
        }
Пример #2
0
        public string SendMessageOnFinishAuthentic(string destination, MessageShopInfo info)
        {
            MessageContent messageContentConfig = SiteMessageCore.GetMessageContentConfig();
            string         str = messageContentConfig.ShopSuccess.Replace("#userName#", info.UserName).Replace("#companyName#", info.CompanyName).Replace("#siteName#", info.SiteName);

            SendMessage(destination, string.Concat(info.SiteName, "供应商(", info.CompanyName, ")已经完成实地认证"), str, false);
            return(str);
        }
Пример #3
0
        public string SendMessageOnOrderShipping(string destination, MessageOrderInfo info)
        {
            MessageContent messageContentConfig = SiteMessageCore.GetMessageContentConfig();
            string         str = messageContentConfig.OrderShipping.Replace("#userName#", info.UserName).Replace("#orderId#", info.OrderId).Replace("#siteName#", info.SiteName).Replace("#shippingCompany#", info.ShippingCompany).Replace("#shippingNumber", info.ShippingNumber);

            SendMessage(destination, string.Concat(info.SiteName, "订单(", info.OrderId, ")已发货"), str, false);
            return(str);
        }
Пример #4
0
        public string SendMessageOnOrderCreate(string destination, MessageOrderInfo info)
        {
            MessageContent messageContentConfig = SiteMessageCore.GetMessageContentConfig();
            string         str = messageContentConfig.OrderCreated.Replace("#userName#", info.UserName).Replace("#orderId#", info.OrderId).Replace("#siteName#", info.SiteName);

            SendMessage(destination, string.Concat(info.SiteName, "订单创建成功"), str, false);
            return(str);
        }
Пример #5
0
        public string SendMessageOnFindPassWord(string destination, MessageUserInfo info)
        {
            MessageContent messageContentConfig = SiteMessageCore.GetMessageContentConfig();
            string         str = messageContentConfig.FindPassWord.Replace("#userName#", info.UserName).Replace("#checkCode#", info.CheckCode).Replace("#siteName#", info.SiteName);

            SendMessage(destination, string.Concat(info.SiteName, "找回密码验证"), str, false);
            return(str);
        }
Пример #6
0
        public string SendMessageOnOrderRefund(string destination, MessageOrderInfo info)
        {
            MessageContent messageContentConfig = SiteMessageCore.GetMessageContentConfig();
            string         str         = messageContentConfig.OrderRefund.Replace("#userName#", info.UserName).Replace("#orderId#", info.OrderId).Replace("#siteName#", info.SiteName);
            decimal        refundMoney = info.RefundMoney;
            string         str1        = str.Replace("#RefundMoney#", refundMoney.ToString("F2"));

            SendMessage(destination, string.Concat(info.SiteName, "订单(", info.OrderId, ")退款已处理"), str1, false);
            return(str1);
        }
Пример #7
0
        public string SendMessageOnOrderPay(string destination, MessageOrderInfo info)
        {
            MessageContent messageContentConfig = SiteMessageCore.GetMessageContentConfig();
            string         str        = messageContentConfig.OrderPay.Replace("#userName#", info.UserName).Replace("#orderId#", info.OrderId).Replace("#siteName#", info.SiteName);
            decimal        totalMoney = info.TotalMoney;
            string         str1       = str.Replace("#Total#", totalMoney.ToString("F2"));

            SendMessage(destination, string.Concat(info.SiteName, "订单支付成功"), str1, false);
            return(str1);
        }