Admin/system/Order/Order_Send.aspx.cs

(开头部分) 2KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using UAP;

[UAP.Role]
public partial class Order_Order_Send : UAP.UI.ListPage
{

    public string get(string id)
    {
        try
        {
            return DataBase.getJsonString(string.Format(@"
select 
o.*
,statedname=case stated when 0 then '待支付' when 1 then '已支付' when 2 then '已发货' else '确认收货' end
,username=u.name
,usermobile=u.mobile
from ec_order o
left join ec_users u on o.userid=u.id
where o.id={0}", id), 0);
        }
        catch (Exception ex)
        {
            return ex.Message;
        }
    }

    protected override string Table
    {
        get
        {
            string oid = Request.QueryString.Get("$");
            if (!string.IsNullOrEmpty(oid))
            {
                return string.Format(@"(
select 
 d.*
,packname=p.name
,packtag=p.code
,pack_sum=d.amount*qty
from ec_order_detail d
left join ec_product p on d.productid=p.id
where d.oid={0})_", oid);
            }
            else
            {
                return "[]";
            }
        }
    }


    public string expres(int id, JSON data)
    {
        try
后面还有 21 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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