Web/SendWebSocketMSG.aspx.cs

(开头部分) 3KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

using System.Text;
using System.Text.RegularExpressions;
using WMPT.Common;

public partial class SendWebSocketMSG : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Clear();
        //返回结果:rscode表示代码,msg表示说明;  1表示成功,msg为空
        string rs = "{\"rscode\":\"1\",\"msg\":\"\"}";
        int id;//商家或者骑士编号

        //HJlog.toLog("id=" + Request["id"] + " se=" + Request["se"] + "ty=" + Request["ty"] + " msg=" + Request["msg"] + " autotype=" + Request["autotype"] + " ids=" + Request["ids"]);

        int autotype = HjNetHelper.GetQueryInt("autotype", 0);
        switch (autotype)
        {
            case 1:  //发所有人
                {
                    int cityid = HjNetHelper.GetQueryInt("cityid", 0);
                    NoticeHelper notice = new NoticeHelper(Context);
                    notice.send2All(cityid);
                }
                break;
            case 2:  //发给商家一定范围内的骑士

                string ids = Request["ids"];
                if (ids != null && ids != "")
                {
                    NoticeHelper notice = new NoticeHelper(Context);
                    notice.send2IDs(ids);
                }

                break;
            default:
                if (int.TryParse(Request["id"], out id))
                {
                    int type = 0;//消息类型:0表示订单,1表示纯消息。
                    int se = 1;//1表示骑士,2表示商家


                    int.TryParse(Request["se"], out se);
                    int.TryParse(Request["ty"], out type);

                    /**********************************************
                      msg(通知内容)
                           新订单通知 {\"state\":"\"1\,\"count\":\"1\",\"ExpressOrdercount\":\"1\"}  count 表示外卖订单数量,ExpressOrdercount表示跑腿订单数量
                           消息通知   {\"state\":"\"1\,\"msg\":\"XX订单取消配送\"} msg 表示消息内容
                      id  商家或者骑士编号
                      se  1表示骑士,2表示商家
                      type  消息类型:0表示订单,1表示纯消息。
                    ************************************************/
后面还有 28 行代码,购买后查看完整代码

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

AI 解读 AI

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

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