01.code/LanweiUI/index.aspx.cs

(开头部分) 9KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Lanwei.Weixin.Common;
using Lanwei.Weixin.DAL;
using System.Data;
using Lanwei.Weixin.DBUtility;

using System.Web.Script.Serialization;

using System.Net;
using System.Xml;


namespace Lanwei.Weixin.UI
{
    public partial class index : System.Web.UI.Page
    {
     
        public UserDAL dal = new UserDAL();
        public LogsDAL logs = new LogsDAL();

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!this.IsPostBack)
            {
                //

                //this.txtUserName.Text = "lanwei";
                //this.txtPassword.TextMode = TextBoxMode.SingleLine;
                //this.txtPassword.Text = "123456";

                string ipString = Request.UserHostAddress.ToString();

                //使用          


                if (ipString == "127.0.0.1" || ipString == "" || ipString == "::1")
                {
                    return;
                }

                DetailAddress detail = GetDetailAddressByBaiduAPI(ipString);



                string contents = "蓝微·云ERP有访客,IP地址:" + ipString + " " + detail.content.address;

              



            }
        }

        #region 获取IP地址

后面还有 246 行代码,购买后查看完整代码

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

AI 解读 AI

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

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