Web/App/shop/updateTogoState.aspx.cs

(完整代码) 1KB

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

using WMPT.Model;
using WMPT.SQLServerDAL;

// CopyRight (c) 2009-2012 HangJing Teconology. All Rights Reserved.
// zjf@iWMPT.com
// 2012-05-25
// 更新订单状态
// 传入参数:订单编号 订单状态 
public partial class App_Android_shop_updateTogoState : System.Web.UI.Page
{

    Points dal = new Points();

    protected void Page_Load(object sender, EventArgs e)
    {
        Response.Clear();

        string shopid = WebUtility.InputText(Request["shopid"]);
        string state = WebUtility.InputText(Request["state"]);
        //状态1:正常营业;0:暂停营业;-1休息

        int back = dal.UpdateValue("Status", state, " where unid = " + shopid.Trim());

        if (back > 0)
        {
            Response.Write("{\"togoid\":\"" + shopid.Trim() + "\",\"state\":\"1\"}");
        }
        else
        {
            Response.Write("{\"togoid\":\"" + shopid.Trim() + "\",\"state\":\"0\"}");
        }

        Response.End();
    }
}

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

AI 解读 AI

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

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