Web/App/shop/SaveTogobytogoid.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 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 WMPT.Model;
using WMPT.SQLServerDAL;
using WMPT.Common;

public partial class App_shop_SaveTogobytogoid : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        StringBuilder json = new StringBuilder();
        Response.Clear();

        string jsonstring = Request["ordermodel"];

        string rs = "{\"state\":\"1\",\"msg\":\"更新成功\"}";

        Points togoBll = new Points();
        PointsInfo info = new PointsInfo();
        //商户版要加编辑资料的

        WMPT.Common.HJlog.toLog("编辑资料数据:" + jsonstring);

        PointsInfo Togomodel = new System.Web.Script.Serialization.JavaScriptSerializer().Deserialize<PointsInfo>(jsonstring);

        info.Unid = Togomodel.Unid;
        info = togoBll.GetModel(info.Unid);
        info.LoginName = Togomodel.LoginName;
        string sqls = "LoginName='" + info.LoginName + "' and Unid <>" + info.Unid;
        if (togoBll.GetCount(sqls) > 0)
        {
            rs = "{\"state\":\"-1\",\"msg\":\"登陆名重复,请得新输入\"}";
            Response.Write(rs);
            Response.End();
            return;
        }
        info.Password = Togomodel.Password;
        info.Name = Togomodel.Name;
        info.Comm = Togomodel.Comm;
        info.CommPerson = Togomodel.CommPerson;
        info.Address = Togomodel.Address;
        info.senttime = Togomodel.senttime;
        info.special = Togomodel.special;

        //营业时间
        info.Opentimes1 = Togomodel.Opentimes1;
        info.Opentimes2 = Togomodel.Opentimes2;
        if (Togomodel.Opentimes1.ToString() != "" && Togomodel.Opentimes2.ToString() != "")
        {
            info.Closetimes1 = Togomodel.Closetimes1;
            info.Closetimes2 = Togomodel.Closetimes2;
        }
        else
        {
后面还有 23 行代码,购买后查看完整代码

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

AI 解读 AI

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

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