Hidistro.UI.Web/Admin/Shop/Config.cs

(开头部分) 7KB

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

namespace Hidistro.UI.Web.Admin.Shop
{
    using Hidistro.Core;
    using Hidistro.Core.Entities;
    using Hidistro.UI.Common.Controls;
    using Hidistro.UI.ControlPanel.Utility;
    using System;
    using System.IO;
    using System.Text.RegularExpressions;
    using System.Web.UI.HtmlControls;
    using System.Web.UI.WebControls;
    using Hidistro.Entities.Store;
    using Hidistro.ControlPanel.Store;
    using Hidistro.Entities.Members;
    using Hidistro.SaleSystem.Vshop;

    public class STConfig : AdminPage
    {
        protected Button btnSave;
        protected HiddenField hidpic;
        protected HiddenField hidpicdel;
        protected Script Script4;
        protected HtmlForm thisForm;
        protected TextBox txtShopIntroduction;
        protected TextBox txtShopTel;
        protected TextBox txtSiteName;

        protected STConfig()
            : base("m01", "dpp02")
        {
        }

        private void btnSave_Click(object sender, EventArgs e)
        {
            SiteSettings masterSettings = SettingsManager.GetMasterSettings(false);
            string str = this.txtSiteName.Text.Trim();
            if ((str.Length < 1) || (str.Length > 10))
            {
                this.ShowMsg("请填写您的店铺名称,长度在10个字符以内", false);
            }
            else
            {
                string input = this.txtShopTel.Text.Trim();
                if ((input.Length > 0) && !Regex.IsMatch(input, @"(^[0-9]{3,4}\-[0-9]{7,8}(\-[0-9]{2,4})?$)|(^[0-9]{7,8}$)|(^[0−9]3,4[0-9]{3,8}$)|(^0{0,1}13[0-9]{9}$)|(13\d{9}$)|(15[01235-9]\d{8}$)|(1[4978][0-9]\d{8}$)|(^400(\-)?[0-9]{3,4}(\-)?[0-9]{3,4}$)"))
                {
                    this.ShowMsg("请填写正确的手机或座机号码", false);
                }
                else
                {
                    string str3 = this.txtShopIntroduction.Text.Trim();
                    if (str3.Length > 60)
                    {
                        this.ShowMsg("店铺介绍的长度不能超过60个字符", false);
                    }
                    else
                    {

                        ManagerInfo currentManager = ManagerHelper.GetCurrentManager();
                        if (currentManager != null && currentManager.RoleId == 3)
                        {
后面还有 110 行代码,购买后查看完整代码

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

AI 解读 AI

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

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