BLL/Views/Index.cs

(完整代码) 939B

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UAP;


namespace BLL.Views
{
    public class Index : UAP.Razor.Page
    {
        protected JSON[] NewProducts = null, Product_FirstTypes = null, Products = null;
        public override void OnLoad()
        {
            NewProducts = DataBase.getJson(@"
select  
 n.* 
,typename=t.name
from ec_product n
left join ec_product_type t on n.itype=t.id
where n.isnew=1  and n.isactive=1");
            Product_FirstTypes = DataBase.getJson("select * from ec_product_type where itype=1 and isactive=1");
            Products = DataBase.getJson(@"
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");



            base.OnLoad();
        }

        public void logout()
        {
            UAP.User.Logout();
        }

    }
}

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

AI 解读 AI

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

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