Пример #1
0
        public string SendMessageOnShopSuccess(string destination, MessageShopInfo info)
        {
            MessageContent messageContentConfig = SMSCore.GetMessageContentConfig();
            string         str = messageContentConfig.ShopSuccess.Replace("#userName#", info.UserName).Replace("#shopName#", info.ShopName).Replace("#siteName#", info.SiteName);

            SendMessage(destination, str, "0");
            return(str);
        }
Пример #2
0
        public string SendMessageOnOrderShipping(string destination, MessageOrderInfo info)
        {
            MessageContent messageContentConfig = SMSCore.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, str, "0");
            return(str);
        }
Пример #3
0
        public string SendMessageOnOrderCreate(string destination, MessageOrderInfo info)
        {
            MessageContent messageContentConfig = SMSCore.GetMessageContentConfig();
            string         str = messageContentConfig.OrderCreated.Replace("#userName#", info.UserName).Replace("#orderId#", info.OrderId).Replace("#siteName#", info.SiteName);

            SendMessage(destination, str, "0");
            return(str);
        }
Пример #4
0
        public string SendMessageOnFindPassWord(string destination, MessageUserInfo info)
        {
            MessageContent messageContentConfig = SMSCore.GetMessageContentConfig();
            string         str = messageContentConfig.FindPassWord.Replace("#userName#", info.UserName).Replace("#checkCode#", info.CheckCode).Replace("#siteName#", info.SiteName);

            SendMessage(destination, str, "2");
            return(str);
        }
Пример #5
0
        public string SendMessageOnOrderRefund(string destination, MessageOrderInfo info)
        {
            MessageContent messageContentConfig = SMSCore.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, str1, "0");
            return(str1);
        }