Ejemplo n.º 1
0
        protected string GetReplyTypeName(object obj)
        {
            ReplyType en   = (ReplyType)obj;
            string    str  = string.Empty;
            bool      flag = false;

            if (ReplyType.Subscribe == (en & ReplyType.Subscribe))
            {
                str  = str + "[关注时回复]";
                flag = true;
            }
            if (ReplyType.NoMatch == (en & ReplyType.NoMatch))
            {
                str  = str + "[无匹配回复]";
                flag = true;
            }
            if (ReplyType.Keys == (en & ReplyType.Keys))
            {
                str  = str + "[关键字回复]";
                flag = true;
            }
            if (!flag)
            {
                str = en.ToShowText();
            }
            return(str);
        }
Ejemplo n.º 2
0
        protected string GetReplyTypeName(object obj)
        {
            ReplyType replyType = (ReplyType)obj;
            string    text      = string.Empty;
            bool      flag      = false;

            if (ReplyType.Subscribe == (replyType & ReplyType.Subscribe))
            {
                text += "[<span style='color:orange;'>关注时回复</span>]";
                flag  = true;
            }
            if (ReplyType.NoMatch == (replyType & ReplyType.NoMatch))
            {
                text += "[<span style='color:green;'>无匹配回复</span>]";
                flag  = true;
            }
            if (ReplyType.Keys == (replyType & ReplyType.Keys))
            {
                text += "[关键字回复]";
                flag  = true;
            }
            if (!flag)
            {
                text = replyType.ToShowText();
            }
            return(text);
        }
Ejemplo n.º 3
0
        protected string GetReplyTypeName(object obj)
        {
            ReplyType replyType = (ReplyType)obj;
            string    text      = string.Empty;
            bool      flag      = false;

            if (ReplyType.Subscribe == (replyType & ReplyType.Subscribe))
            {
                text += "[关注时回复]";
                flag  = true;
            }
            if (ReplyType.NoMatch == (replyType & ReplyType.NoMatch))
            {
                text += "[无匹配回复]";
                flag  = true;
            }
            if (ReplyType.Keys == (replyType & ReplyType.Keys))
            {
                text += "[关键字回复]";
                flag  = true;
            }
            if (ReplyType.Kefu == replyType)
            {
                text = "[客服回复]";
                flag = true;
            }
            if (!flag)
            {
                text = replyType.ToShowText();
            }
            return(text);
        }