WmptWeixin/TextHandler.cs

(开头部分) 8KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using WMPT.Common;
using WMPT.Model;
using WMPT.SQLServerDAL;
using System.Web;
using System.Reflection;

namespace WMPT.Weixin
{
    /// <summary>
    /// 文本信息处理类
    /// </summary>
    public class TextHandler : BaseHandler
    {
        HttpContext context = null;
        text model = null;
        public TextHandler(BaseNotice _notice)
            : base(_notice)
        {

        }

        /// <summary>
        /// 文本信息处理方法,如果文本信息 = d,返回今天订单
        /// </summary>
        /// <returns></returns>
        public override string HandleNotice(HttpContext _context)
        {
            StringBuilder backmsg = new StringBuilder();
            model = (text)base.notice;
            context = _context;


            /// <summary>
            /// 保存要处理的文字,及对应函数
            /// </summary>
            Dictionary<string, string> data = new Dictionary<string, string>();
            data.Add("订单", "showOrder");
            data.Add("d", "showOrder");

            data.Add("商家", "shopLoing");
            data.Add("s", "shopLoing");

            data.Add("zd", "autolocate");
            data.Add("自动", "autolocate");

            string posttext = model.Content.ToLower().Trim();
            string action = "defaultReback";
            foreach (var item in data)
            {
                if (item.Key == posttext)
                {
                    action = item.Value;
                    break;
                }
            }
后面还有 147 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。