hlzyWeb/MyShopInfo.aspx.cs

(开头部分) 4KB

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

using Hidistro.ControlPanel.Store;
using Hidistro.Core;
using Hidistro.Core.Entities;
using Hidistro.Entities.Members;
using Hidistro.SaleSystem.Vshop;
using Hidistro.UI.Common.Controls;
using Hidistro.UI.SaleSystem.CodeBehind;
using System;
using System.Globalization;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace WebCNXY
{
    public partial class MyShopInfo : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

            if (!base.IsPostBack)
            {
                HiAffiliation.LoadPage();
             
                string siteName = SettingsManager.GetMasterSettings(true).SiteName;
                HttpCookie cookie = HttpContext.Current.Request.Cookies["Vshop-ReferralId"];
                MemberInfo currentMember = MemberProcessor.GetCurrentMember();
                if ((cookie != null) && !string.IsNullOrEmpty(cookie.Value))
                {
                    DistributorsInfo distributorInfo = DistributorsBrower.GetDistributorInfo(Convert.ToInt32(cookie.Value));
                    if (distributorInfo != null && currentMember != null)
                    {
                        if (distributorInfo.UserId == currentMember.UserId && distributorInfo.Status == 1)
                        {
                            if (distributorInfo.ShopType == 1)
                            {
                                //LiteralShopInfo.Text = " <a href=\"/default.aspx?ReferralId=" + distributorInfo.UserId + "\">我的小店<i></i></a>";
                                Response.Redirect("/default.aspx?ReferralId=" + distributorInfo.UserId);
                            }
                            else
                            {
                                //LiteralShopInfo.Text = " <a href=\"/Vshop/DistributorCenter.aspx\">我的店铺<i></i></a>";
                                Response.Redirect("/Vshop/DistributorCenter.aspx");
                            }

                        }
                        else
                        {
                            //LiteralShopInfo.Text = " <a href=\"/Vshop/DistributorCenter.aspx\">分销申请<i></i></a>";
                            Response.Redirect("/Vshop/DistributorValidST.aspx");


                        }


                        if (Request["ReferralId"] != null)
                        {

                            distributorInfo = DistributorsBrower.GetDistributorInfo(Convert.ToInt32(HttpContext.Current.Request["ReferralId"]));
                            if (distributorInfo != null)
后面还有 51 行代码,购买后查看完整代码

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

AI 解读 AI

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

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