コード例 #1
0
        private void BindDataStat()
        {
            DataSet ds = FacadeManage.aideTreasureFacade.GetStatInfo();

            if (ds.Tables[0] != null && ds.Tables[0].Rows.Count > 0)
            {
                DataRow row = ds.Tables[0].Rows[0];
                ltAllRevenue.Text       = FacadeManage.ConversionMoneyToShow((Convert.ToInt64(row["TotalRevenue"]) + Convert.ToInt64(row["TotalInsureRevenue"]))).ToString("N");
                ltAllScore.Text         = FacadeManage.ConversionMoneyToShow((Convert.ToInt64(row["Score"]) + Convert.ToInt64(row["InsureScore"]))).ToString("N");
                ltAmount.Text           = FacadeManage.ConversionMoneyToShow(row["Amount"].ToString()).ToString();
                ltDiamond.Text          = Convert.ToInt64(row["Diamond"]).ToString("N");
                ltGameRegisterUser.Text = row["GameRegisterUser"].ToString();
                ltGoldRoomCount.Text    = row["GoldRoomCount"].ToString();
                ltH5RegisterUser.Text   = row["H5RegisterUser"].ToString();
                ltInsureRevenue.Text    = FacadeManage.ConversionMoneyToShow(Convert.ToInt64(row["InsureRevenue"])).ToString("N");
                ltInsureScore.Text      = FacadeManage.ConversionMoneyToShow(Convert.ToInt64(row["InsureScore"])).ToString("N");
                //ltPayDiamond.Text = row["PayDiamond"].ToString();
                //ltPayDiamondAmount.Text = row["PayDiamondAmount"].ToString();
                ltPayScore.Text           = FacadeManage.ConversionMoneyToShow(Convert.ToInt64(row["PayScore"])).ToString();
                ltPayScoreAmount.Text     = FacadeManage.ConversionMoneyToShow(Convert.ToInt64(row["PayScoreAmount"])).ToString();
                ltRevenue.Text            = FacadeManage.ConversionMoneyToShow(Convert.ToInt64(row["Revenue"])).ToString();
                ltScore.Text              = FacadeManage.ConversionMoneyToShow(Convert.ToInt64(row["Score"])).ToString();
                ltScoreRoomCount.Text     = row["ScoreRoomCount"].ToString();
                ltTotalAmount.Text        = FacadeManage.ConversionMoneyToShow(row["TotalAmount"].ToString()).ToString();
                ltTotalInsureRevenue.Text = FacadeManage.ConversionMoneyToShow(Convert.ToInt64(row["TotalInsureRevenue"])).ToString();
                ltTotalRevenue.Text       = FacadeManage.ConversionMoneyToShow(Convert.ToInt64(row["TotalRevenue"])).ToString();
                ltTotalUser.Text          = row["TotalUser"].ToString();
                ltTotalWaste.Text         = FacadeManage.ConversionMoneyToShow(Convert.ToInt64(row["TotalWaste"])).ToString();
                ltWaste.Text              = FacadeManage.ConversionMoneyToShow(Convert.ToInt64(row["Waste"])).ToString();
                ltWebRegisterUser.Text    = row["WebRegisterUser"].ToString();
            }
        }
コード例 #2
0
 private void Update(object sender, EventArgs e)
 {
     pp--;
     if (pp < 0)
     {
         FacadeManage.CreatTurnTableDate();
         pp = new Random().Next(10);
     }
 }
コード例 #3
0
        /// <summary>
        /// 数据绑定
        /// </summary>
        private void ShareInfoDataBind()
        {
            PagerSet pagerSet = FacadeManage.aideTreasureFacade.GetList(OnLinePayOrder.Tablename,
                                                                        SearchItems, Orderby, anpNews.CurrentPageIndex, anpNews.PageSize);

            anpNews.RecordCount     = pagerSet.RecordCount;
            litNoData.Visible       = pagerSet.PageSet.Tables[0].Rows.Count <= 0;
            ltTotal.Text            = $"已支付金额:{FacadeManage.ConversionMoneyToShow(FacadeManage.aideTreasureFacade.GetTotalPayAmount(SearchItems + " AND OrderStates>0").ToString())}元 已支付订单数:{FacadeManage.aideTreasureFacade.GetTotalPayOrderCount(OnLinePayOrder.Tablename,SearchItems+" AND OrderStates>0")} (当前条件统计)";
            rptShareInfo.DataSource = pagerSet.PageSet;
            rptShareInfo.DataBind();
        }
コード例 #4
0
        private void OrderDataBind()
        {
            PagerSet pagerSet = FacadeManage.aideTreasureFacade.GetList(DrawalOrder.Tablename,
                                                                        SearchItems, Orderby, anpNews.CurrentPageIndex, anpNews.PageSize);

            anpNews.RecordCount     = pagerSet.RecordCount;
            litNoData.Visible       = pagerSet.PageSet.Tables[0].Rows.Count <= 0;
            ltTotal.Text            = $"已出款金额:{FacadeManage.ConversionMoneyToShow(FacadeManage.aideTreasureFacade.GetTotleDrawalMoney(SearchItems).ToString())}元 ";
            rptShareInfo.DataSource = pagerSet.PageSet;
            rptShareInfo.DataBind();
        }
コード例 #5
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            OnlinePayConfig config = new OnlinePayConfig();

            if (IntParam > 0)
            {
                if (!AuthUserOperationPermission(Permission.Edit))
                {
                    return;
                }
                config = FacadeManage.aideTreasureFacade.GetOnlinePayConfig(IntParam);
            }
            else
            {
                if (!AuthUserOperationPermission(Permission.Add))
                {
                    return;
                }
            }
            config.PayType      = Convert.ToByte(ddlProductType.SelectedValue);
            config.PayName      = CtrlHelper.GetText(txtProductName);
            config.UID          = CtrlHelper.GetText(tetUID);
            config.Md5key       = CtrlHelper.GetText(TexMd5);
            config.PublicKey    = CtrlHelper.GetText(TxtPublicKey);
            config.PrivateKey   = CtrlHelper.GetText(TxtPrivateKey);
            config.MaxAmount    = FacadeManage.ConversionMoneyToReal(Convert.ToInt32(TextMax.Text));
            config.MinAmount    = FacadeManage.ConversionMoneyToReal(Convert.ToInt32(TextMin.Text));
            config.ShoutCut     = FacadeManage.ConverToShow(CtrlHelper.GetText(txtPrice));
            config.PayIdentity  = Convert.ToByte(DropDownList1.SelectedValue);
            config.SortID       = Convert.ToInt32(SortID.Text);
            config.FristPresent = Convert.ToInt32(txtFristPresent.Text);
            config.PresentScore = Convert.ToInt32(txtPresentScore.Text);
            config.ChanelID     = Convert.ToInt32(DropDownList2.SelectedValue);
            config.ChanelName   = DropDownList2.SelectedItem.Text;
            config.AttachStr1   = CtrlHelper.GetText(AttaBox1);
            config.AttachStr2   = CtrlHelper.GetText(AttaBox2);
            config.PayUrl       = CtrlHelper.GetText(TexPayUrl);
            config.Nullity      = (byte)(ckbLock.Checked ? 1 : 0);
            if (IntParam > 0)
            {
                config.ID = IntParam;
            }

            int result = FacadeManage.aideTreasureFacade.SaveOnlinePayConfig(config);

            if (result > 0)
            {
                ShowInfo("配置信息操作成功", "OnLinePayPage.aspx", 1200);
            }
            else
            {
                ShowError("配置信息操作失败");
            }
        }
コード例 #6
0
        // This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
        public void Configure(IApplicationBuilder app, IWebHostEnvironment env, ILoggerFactory loggerFactory)
        {
            if (env.IsDevelopment())
            {
                app.UseDeveloperExceptionPage();
            }
            else
            {
                app.UseExceptionHandler(AllException);
            }

            app.UseIgnoreUrl("Views");

            app.UseResponseCompression();

            // 此部分为作者需要,你们可以直接删掉
            var staticfile = new StaticFileOptions();
            var provider   = new Microsoft.AspNetCore.StaticFiles.FileExtensionContentTypeProvider();

            provider.Mappings.Add(".php", "text/plain");//手动设置对应MIME
            provider.Mappings.Add(".aspx", "text/plain");
            staticfile.ContentTypeProvider = provider;
            //staticfile.OnPrepareResponse = (a) =>
            //{

            //};
            app.UseStaticFiles(staticfile);

            app.UseDiySession();

            app.UseAshx(routes =>
            {
                routes.MapApiRoute(
                    name: "Api",
                    areaName: "AdminCore.Api",
                    template: "Api/{controller=AdminServers}/{action}/{id?}");

                routes.MapApiRoute(
                    name: "Admin",
                    areaName: "AdminCore.WebUi",
                    template: "{controller=Admin}/{action=Index}/{id?}");
            });

            FacadeManage.UseSqlLog(loggerFactory); //注册相关SQL日志。

            Menu.Reload();                         //获取默认系统菜单

            TcpFrame.ConnectClient(loggerFactory);

            app.GetObject <UpLoad>().SetBasePath(env.WebRootPath);

            Api.AdminServers.StartBaseLog();
        }
コード例 #7
0
 /// <summary>
 /// 数据绑定
 /// </summary>
 protected void BindData()
 {
     if (IntParam > 0)
     {
         RegisterGive quest = FacadeManage.aideAccountsFacade.GetRegisterGiveInfo(IntParam);
         if (quest != null)
         {
             CtrlHelper.SetText(txtScoreCount, FacadeManage.ConversionMoneyToShow(quest.ScoreCount.ToString()).ToString());
             CtrlHelper.SetText(txtDiamondCount, quest.DiamondCount.ToString());
             Dropplatform.SelectedValue = quest.PlatformType.ToString();
         }
     }
 }
コード例 #8
0
        private void SetUerBet()
        {
            UserValidBet bet = FacadeManage.aideTreasureFacade.GetUserVailBet(UserId);

            if (bet == null)
            {
                ltTotal.Text = $"目标打码量:0 当前打码量:0";
            }
            else
            {
                ltTotal.Text = $"目标打码量:{FacadeManage.ConversionMoneyToShow(bet.TargetBet)} 当前打码量:{FacadeManage.ConversionMoneyToShow(bet.CurrentValidBet)}";
            }
        }
コード例 #9
0
        /// <summary>
        /// 数据绑定
        /// </summary>
        private void BindData()
        {
            // anpPage.CurrentPageIndex, anpPage.PageSize
            PagerSet pagerSet = FacadeManage.aideRecordFacade.GetListLock("WHQJAccountsDB.dbo.AccountsInfo (NOLOCK) A INNER JOIN WHQJRecordDB.dbo.AgentCountRecord (NOLOCK) R ON A.UserID = R.UserID ", SearchItems, " ORDER BY R.CountTime DESC ", anpPage.CurrentPageIndex, anpPage.PageSize, "A.UserID,A.GameID,A.NickName,R.CountTime,R.Tax,R.SubNumber,R.ParentID,R.BeggarNumber,R.CurrReward");

            string startDate = CtrlHelper.GetText(txtStartDate);
            string endDate   = CtrlHelper.GetText(txtEndDate);

            StringBuilder where = new StringBuilder();
            if (DropDownList1.SelectedValue != "0")
            {
                where.AppendFormat("WHERE  ParentID={0}", DropDownList1.SelectedValue);
            }
            else
            {
                where.AppendFormat("WHERE  ParentID={0}", IntParam);
            }
            where.AppendFormat(" AND CountTime BETWEEN '{0}' AND '{1}'", startDate, endDate);
            DataSet ds = FacadeManage.aideRecordFacade.CountReward(where.ToString());

            if (ds.Tables.Count > 0)
            {
                DataRow row            = ds.Tables[0].Rows[0];
                long    ImmediateMoney = 0;
                long    otherMoney     = 0;
                string  person         = "0";
                if (row["Person"] != DBNull.Value)
                {
                    person = row["Person"].ToString();
                }

                if (row["ImmediateMoney"] != DBNull.Value)
                {
                    ImmediateMoney = (long)(Convert.ToInt64(row["ImmediateMoney"]) * 0.3);
                }
                if (row["OtherMoney"] != DBNull.Value)
                {
                    otherMoney = (long)(Convert.ToInt64(row["OtherMoney"]) * 0.3);
                }
                lbTotal.Text = person;
                Label1.Text  = FacadeManage.ConversionMoneyToShow(ImmediateMoney).ToString();
                Label1.Text  = FacadeManage.ConversionMoneyToShow(otherMoney).ToString();
            }

            anpPage.RecordCount    = pagerSet.RecordCount;
            rptDataList.DataSource = pagerSet.PageSet.Tables[0];
            rptDataList.DataBind();
        }
コード例 #10
0
 private void BindData()
 {
     if (IntParam > 0)
     {
         OfficalImgPay chanel = FacadeManage.aideTreasureFacade.GetImgPayById(IntParam);
         TxtName.Text = chanel.ConfigName;
         ddlProductType.SelectedValue = chanel.PayType.ToString();
         PayUrl.Text         = chanel.PayUrl;
         TexMax.Text         = FacadeManage.ConversionMoneyToShow(chanel.MaxAmount).ToString();
         TexMin.Text         = FacadeManage.ConversionMoneyToShow(chanel.MinAmount).ToString();
         TextBoxPre.Text     = chanel.PresentScore.ToString();
         TexDescription.Text = chanel.Description;
         TexSort.Text        = chanel.SortId.ToString();
         ckbLock.Checked     = chanel.Nullity == 1;
     }
 }
コード例 #11
0
 private void BindData()
 {
     if (IntParam > 0)
     {
         OfficalBankPay chanel = FacadeManage.aideTreasureFacade.GetBankPayById(IntParam);
         TxtName.Text        = chanel.ConfigName;
         MerchantName.Text   = chanel.MerchantName;
         BankName.Text       = chanel.BankName;
         BankNumber.Text     = chanel.BankNumber;
         BankAddr.Text       = chanel.BankAddr;
         TexMax.Text         = FacadeManage.ConversionMoneyToShow(chanel.MaxAmount.ToString()).ToString();
         TexMin.Text         = FacadeManage.ConversionMoneyToShow(chanel.MinAmount.ToString()).ToString();
         TextBoxPre.Text     = chanel.PresentScore.ToString();
         TexDescription.Text = chanel.Description;
         TexSort.Text        = chanel.SortId.ToString();
         ckbLock.Checked     = chanel.Nullity == 1;
     }
 }
コード例 #12
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            OfficalBankPay chanel = new OfficalBankPay();

            if (IntParam > 0)
            {
                if (!AuthUserOperationPermission(Permission.Edit))
                {
                    return;
                }
                chanel = FacadeManage.aideTreasureFacade.GetBankPayById(IntParam);
            }
            else
            {
                if (!AuthUserOperationPermission(Permission.Add))
                {
                    return;
                }
            }
            chanel.ConfigName   = TxtName.Text;
            chanel.MerchantName = MerchantName.Text;
            chanel.BankNumber   = BankNumber.Text;
            chanel.BankAddr     = BankAddr.Text;
            chanel.BankName     = BankName.Text;
            chanel.MinAmount    = FacadeManage.ConversionMoneyToReal(Convert.ToInt32(TexMin.Text));
            chanel.MaxAmount    = FacadeManage.ConversionMoneyToReal(Convert.ToInt32(TexMax.Text));
            chanel.PresentScore = Convert.ToInt32(TextBoxPre.Text);
            chanel.Description  = TexDescription.Text;
            chanel.SortId       = Convert.ToInt32(TexSort.Text);
            chanel.Nullity      = (byte)(ckbLock.Checked ? 1 : 0);
            int result = FacadeManage.aideTreasureFacade.SaveBankPay(chanel);

            if (result > 0)
            {
                ShowInfo("配置信息操作成功", "OfficalBankPayList.aspx", 1200);
            }
            else
            {
                ShowError("配置信息操作失败");
            }
        }
コード例 #13
0
        private void OrderDabaBind()
        {
            DrawalOrder order = FacadeManage.aideTreasureFacade.GetOrderById(StrParam);

            TxtOrderId.Text   = order.OrderID;
            TxtAmount.Text    = FacadeManage.ConversionMoneyToShow((long)order.Amount).ToString();
            TxtGameID.Text    = order.GameID.ToString();
            TxtMasterID.Text  = order.MasterID.ToString();
            TxtOrderCost.Text = FacadeManage.ConversionMoneyToShow((long)order.OrderCost).ToString();
            Literal4.Text     = FacadeManage.ConversionMoneyToShow((long)(order.Amount - order.OrderCost)).ToString();
            TxtCurrTime.Text  = order.CurrentTime.ToString();
            TxtDealTime.Text  = order.DealTime.ToString();
            IP.Text           = order.IP;

            AccountsInfo info = FacadeManage.aideAccountsFacade.GetAccountInfoByUserId(order.UserID);

            Literal1.Text = info.AliAccount;
            Literal2.Text = info.BankAccount;
            Literal3.Text = FacadeManage.GetBankName(info.BankType);
            if (order.OrderState == 0)
            {
                TextState.Visible = false;
            }
            else
            {
                TextState.Text = order.OrderState == 1 ? "同意" : "拒绝";
                BtnN.Visible   = BtnY.Visible = false;
            }
            if (order.drawalType == 1)
            {
                TxtDrawalType.Text = "支付宝";
                bank.Visible       = false;
            }
            else
            {
                TxtDrawalType.Text = "银行卡";
                aliy.Visible       = false;
            }
        }
コード例 #14
0
        private void BindData()
        {
            // anpPage.CurrentPageIndex, anpPage.PageSize
            PagerSet pagerSet  = FacadeManage.aideRecordFacade.GetListLock("WHQJAccountsDB.dbo.AccountsInfo (NOLOCK) A INNER JOIN WHQJRecordDB.dbo.AgentCountRecord (NOLOCK) R ON A.UserID = R.UserID ", SearchItems, " ORDER BY R.CountTime DESC ", anpPage.CurrentPageIndex, anpPage.PageSize, "A.UserID,A.GameID,A.NickName,R.CountTime,R.Tax,R.SubNumber,R.ParentID,R.BeggarNumber,R.CurrReward");
            string   startDate = CtrlHelper.GetText(txtStartDate);
            string   endDate   = CtrlHelper.GetText(txtEndDate);
            string   gameid    = CtrlHelper.GetText(GameId);
            int      uid       = FacadeManage.aideAccountsFacade.GetAccountInfoByGameId(Convert.ToInt32(gameid)).UserID;
            DataSet  ds        = FacadeManage.aideRecordFacade.CountReward($"WHERE  UserID={uid} AND CountTime BETWEEN '{startDate}' AND '{endDate}'");

            if (ds.Tables.Count > 0)
            {
                DataRow row            = ds.Tables[0].Rows[0];
                long    ImmediateMoney = 0;
                long    otherMoney     = 0;
                string  person         = "0";
                if (row["Person"] != DBNull.Value)
                {
                    person = row["Person"].ToString();
                }

                if (row["ImmediateMoney"] != DBNull.Value)
                {
                    ImmediateMoney = (long)(Convert.ToInt64(row["ImmediateMoney"]) * 0.3);
                }
                if (row["OtherMoney"] != DBNull.Value)
                {
                    otherMoney = (long)(Convert.ToInt64(row["OtherMoney"]) * 0.3);
                }
                lbTotal.Text = person;
                Label1.Text  = FacadeManage.ConversionMoneyToShow(ImmediateMoney).ToString();
                Label1.Text  = FacadeManage.ConversionMoneyToShow(otherMoney).ToString();
            }

            anpPage.RecordCount    = pagerSet.RecordCount;
            rptDataList.DataSource = pagerSet.PageSet.Tables[0];
            rptDataList.DataBind();
        }
コード例 #15
0
        protected void DeleteUrl(object sender, EventArgs e)
        {
            string     id = ((LinkButton)sender).CommandArgument;
            DomainName dm = FacadeManage.aidePlatformFacade.GetDomainById(Convert.ToInt32(id));



            if (dm.Type == 1 && dm.State == 1)
            {
                ShowError("使用当中的下载域名不能禁用");
                return;
            }
            else if (dm.Type != 1)
            {
                string uri = ApplicationSettings.Get("AddUri") + "/del_domain/" + dm.Url.Replace("https://", "").Replace("http://", "");
                string rs  = FacadeManage.RequestUri(uri, "", "DELETE");
                if (rs == "")
                {
                    ShowError("配置请求失败");
                    return;
                }
                object obj = new JavaScriptSerializer().DeserializeObject(rs);
                Dictionary <string, object> json = (Dictionary <string, object>)obj;
                if (json["success"].ToString() != "True")
                {
                    ShowError("配置请求失败");
                    return;
                }
            }
            int r = FacadeManage.aidePlatformFacade.DeleteUrl(Convert.ToInt32(id));

            if (r > 0)
            {
                ShowInfo("删除成功", "DomainNameList.aspx", 1200);
            }
        }
コード例 #16
0
        protected void OffUrl(object sender, EventArgs e)
        {
            int        parma = Convert.ToInt32(((LinkButton)sender).CommandArgument);
            int        id    = parma / 10;
            int        state = parma % 10;
            DomainName dm    = FacadeManage.aidePlatformFacade.GetDomainById(id);

            string uri    = "";
            string sparma = "";


            if (dm.Type == 1)
            {
                if (state == 1)
                {
                    ShowError("下载域名不能禁用");
                    return;
                }

                FacadeManage.aidePlatformFacade.OffDownloadURL();
                uri    = ApplicationSettings.Get("AddUri") + "dl_domain/" + ApplicationSettings.Get("SitTag");
                sparma = "{\"dl_domain\":\"" + dm.Url + "\"}";
            }
            else
            {
                if (state != 1)
                {
                    uri = ApplicationSettings.Get("AddUri") + "pm_domain/" + ApplicationSettings.Get("SitTag");
                    string mm = dm.Url.Replace("https://", "").Replace("http://", "");
                    sparma = "{\"pm_domain\":\"" + mm + "\"}";
                }
                else
                {
                    uri = ApplicationSettings.Get("AddUri") + "del_domain/" + dm.Url.Replace("https://", "").Replace("http://", "");
                }
            }
            string mode = "POST";

            if (state == 1)
            {
                mode = "DELETE";
            }
            string rs = FacadeManage.RequestUri(uri, sparma, mode);

            if (rs == "")
            {
                ShowError("配置请求失败");
                return;
            }
            object obj = new JavaScriptSerializer().DeserializeObject(rs);
            Dictionary <string, object> json = (Dictionary <string, object>)obj;

            if (json["success"].ToString() != "True")
            {
                ShowError("配置请求失败");
                return;
            }

            FacadeManage.aidePlatformFacade.SetDomaState(id, state == 0?1:0);
            ShowInfo("修改成功", "DomainNameList.aspx", 1200);
        }
コード例 #17
0
        protected void btnSave_Click(object sender, EventArgs e)
        {
            if (!AuthUserOperationPermission(Permission.Edit))
            {
                return;
            }
            DomainName domainName = new DomainName();

            if (IntParam > 0)
            {
                domainName = FacadeManage.aidePlatformFacade.GetDomainById(IntParam);
                if (domainName.Url != TextBoxUrl.Text)
                {
                    string uriDelete = ApplicationSettings.Get("AddUri") + "del_domain/" + domainName.Url.Replace("https://", "").Replace("http://", "");
                    string rsDelete  = FacadeManage.RequestUri(uriDelete, "", "DELETE");
                    if (rsDelete == "")
                    {
                        ShowError("配置请求失败");
                        return;
                    }
                    object obj = new JavaScriptSerializer().DeserializeObject(rsDelete);
                    Dictionary <string, object> json = (Dictionary <string, object>)obj;
                    if (json["success"].ToString() != "True")
                    {
                        ShowError("配置请求失败");
                        return;
                    }
                }
            }
            domainName.Type    = Convert.ToByte(ddlProductType.SelectedValue);
            domainName.Url     = TextBoxUrl.Text;
            domainName.AgentId = 0;
            if (ddlProductType.SelectedValue == "3")
            {
                int          GameId = Convert.ToInt32(TextSign.Text);
                AccountsInfo acc    = FacadeManage.aideAccountsFacade.GetAccountInfoByGameId(GameId);
                if (acc == null)
                {
                    ShowError("游戏id不存在");
                    return;
                }
                domainName.AgentId = acc.UserID;
            }
            domainName.State = Convert.ToByte(DropDownListState.SelectedValue);
            domainName.Mode  = 0;
            domainName.id    = IntParam;

            string uri   = "";
            string parma = "";

            if (ddlProductType.SelectedValue == "1")
            {
                uri   = ApplicationSettings.Get("AddUri") + "dl_domain/" + ApplicationSettings.Get("SitTag");
                parma = "{\"dl_domain\":\"" + domainName.Url + "\"}";
            }
            else
            {
                if (domainName.State == 1)
                {
                    uri = ApplicationSettings.Get("AddUri") + "pm_domain/" + ApplicationSettings.Get("SitTag");
                    string mm = domainName.Url.Replace("https://", "").Replace("http://", "");
                    parma = "{\"pm_domain\":\"" + mm + "\"}";
                }
                else
                {
                    uri = ApplicationSettings.Get("AddUri") + "del_domain/" + domainName.Url.Replace("https://", "").Replace("http://", "");
                }
            }
            if (IntParam > 0 || domainName.State == 1)
            {
                string rs = FacadeManage.RequestUri(uri, parma);
                if (rs == "")
                {
                    ShowError("配置请求失败");
                    return;
                }
                object obj = new JavaScriptSerializer().DeserializeObject(rs);
                Dictionary <string, object> json = (Dictionary <string, object>)obj;
                if (json["success"].ToString() != "True")
                {
                    ShowError("配置请求失败");
                    return;
                }
            }
            if (domainName.Type == 1 && domainName.State == 1)
            {
                FacadeManage.aidePlatformFacade.OffDownloadURL();
            }
            int pp = FacadeManage.aidePlatformFacade.SaveDomain(domainName);

            if (pp > 0)
            {
                ShowInfo("配置信息操作成功", "DomainNameList.aspx", 1000);
            }
            else
            {
                ShowError("配置失败");
            }
        }