BLL/Views/Product/Search.cs
(完整代码) 726Busing System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UAP;
namespace BLL.Views.Product
{
public class Search : UAP.Razor.Page
{
/// <summary>
/// 搜索关键字
/// </summary>
protected string key = string.Empty;
protected JSON[] Products = null;
public override void OnLoad()
{
key = Request.QueryString.Get("key");
Products = DataBase.getJson(string.Format(@"
select
p.*
,typename=t.name
,t._sysid_
from ec_product p
left join ec_product_type t on p.itype=t.id
where p.isactive=1 and p.name like '%{0}%'", key));
base.OnLoad();
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。