Hidistro.UI.SaleSystem.zbCodeBehind/VGetRedShare.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using ControlPanel.Promotions;
using Hidistro.Core;
using Hidistro.Core.Entities;
using Hidistro.Entities.Members;
using Hidistro.Entities.Promotions;
using Hidistro.SaleSystem.Vshop;
using Hidistro.UI.Common.Controls;
namespace Hidistro.UI.SaleSystem.zbCodeBehind
{
[ParseChildren(true)]
public class VGetRedShare : VshopTemplatedWebControl
{
private Literal litItemParams;
protected override void AttachChildControls()
{
this.litItemParams = (Literal)this.FindControl("litItemParams");
string str = HttpContext.Current.Request.QueryString.Get("orderid");
MemberInfo currentMember = MemberProcessor.GetCurrentMember();
if (!string.IsNullOrEmpty(str) && (currentMember != null))
{
DataTable orderRedPager = ShareActHelper.GetOrderRedPager(str, currentMember.UserId);
if ((orderRedPager != null) && (orderRedPager.Rows.Count > 0))
{
DataView defaultView = orderRedPager.DefaultView;
if (defaultView.Count > 0)
{
ShareActivityInfo act = ShareActHelper.GetAct(Convert.ToInt32(defaultView[0]["RedPagerActivityId"]));
if (act != null)
{
string shareTitle = act.ShareTitle;
string description = act.Description;
if (shareTitle.Contains("{{店铺名称}}") || description.Contains("{{店铺名称}}"))
{
HttpCookie cookie = new HttpCookie("Vshop-ReferralId");
if ((cookie != null) && (cookie.Value != null))
{
DistributorsInfo userIdDistributors = new DistributorsInfo();
userIdDistributors = DistributorsBrower.GetUserIdDistributors(int.Parse(cookie.Value));
description = description.Replace("{{店铺名称}}", userIdDistributors.StoreName);
shareTitle = shareTitle.Replace("{{店铺名称}}", userIdDistributors.StoreName);
}
else
{
SiteSettings masterSettings = SettingsManager.GetMasterSettings(true);
description = description.Replace("{{店铺名称}}", masterSettings.SiteName);
shareTitle = shareTitle.Replace("{{店铺名称}}", masterSettings.SiteName);
}
}
if (shareTitle.Contains("{{微信昵称}}"))
{
shareTitle = shareTitle.Replace("{{微信昵称}}", currentMember.UserName);
}
if (description.Contains("{{微信昵称}}"))
后面还有 48 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
