Hidistro.UI.Web/Admin/Shop/zb/Hi_Ajax_GoodsListGroupzb.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Web.Admin.Shop
{
using Hidistro.ControlPanel.Commodities;
using Hidistro.Core;
using HiTemplate.Model;
using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
public class Hi_Ajax_GoodsListGroupzb : IHttpHandler
{
public DataTable GetGoods(HttpContext context)
{
int top = (context.Request.Form["GoodListSize"] != null) ? Convert.ToInt32(context.Request.Form["GoodListSize"]) : 6;
ProductShowOrderPriority show = (context.Request.Form["FirstPriority"] != null) ? ((ProductShowOrderPriority) Convert.ToInt32(context.Request.Form["FirstPriority"])) : ProductShowOrderPriority.NULLORDER;
ProductShowOrderPriority priority2 = (context.Request.Form["SecondPriority"] != null) ? ((ProductShowOrderPriority) Convert.ToInt32(context.Request.Form["SecondPriority"])) : ProductShowOrderPriority.NULLORDER;
string str = ProductTempSQLADD.ReturnShowOrder(show);
if (!string.IsNullOrEmpty(str))
{
str = str + ",";
}
if (!string.IsNullOrEmpty(ProductTempSQLADD.ReturnShowOrder(priority2)))
{
str = str + ProductTempSQLADD.ReturnShowOrder(priority2);
}
int currentMemberUserId = 0;
try
{
currentMemberUserId = Convert.ToInt32(context.Request["ReferralId"]);
}
catch
{
}
return ProductHelper.GetTopProductOrderzb(top, str, currentMemberUserId);
}
public string GoodGroupJson(HttpContext context)
{
Hi_Json_GoodGourpContent content = new Hi_Json_GoodGourpContent {
showPrice = (context.Request.Form["ShowPrice"] != null) ? Convert.ToBoolean(context.Request.Form["ShowPrice"]) : true,
layout = (context.Request.Form["Layout"] != null) ? Convert.ToInt32(context.Request.Form["Layout"]) : 1,
showName = (context.Request.Form["showName"] != null) ? Convert.ToBoolean(context.Request.Form["showName"]) : true,
showIco = (context.Request.Form["ShowIco"] != null) ? Convert.ToBoolean(context.Request.Form["ShowIco"]) : true,
goodsize = (context.Request.Form["GoodListSize"] != null) ? Convert.ToInt32(context.Request.Form["GoodListSize"]) : 6
};
List<HiShop_Model_Good> list = new List<HiShop_Model_Good>();
DataTable goods = this.GetGoods(context);
for (int i = 0; i < goods.Rows.Count; i++)
{
HiShop_Model_Good item = new HiShop_Model_Good {
item_id = goods.Rows[i]["ProductId"].ToString(),
title = goods.Rows[i]["ProductName"].ToString(),
price = Convert.ToDouble(goods.Rows[i]["MinShowPrice"]).ToString("f2"),
original_price = Convert.ToDouble(goods.Rows[i]["MarketPrice"]).ToString("f2"),
link = string.Concat(new object[] { "http://", Globals.DomainName, ":", HttpContext.Current.Request.Url.Port, "/ProductDetails.aspx?productId=", goods.Rows[i]["ProductId"].ToString(), "&ReferralId=" ,context.Request["ReferralId"]}),
pic = goods.Rows[i]["ThumbnailUrl310"].ToString()
后面还有 24 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
