Admin/system/Logistics/shipping_temp_edit.aspx.cs
(完整代码) 1KBusing 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 Logistics_shipping_temp_edit : UAP.Page
{
public string get(int id)
{
try
{
return DataBase.getJsonString("select t.*,opanme=r.name from ec_shipping_temp t left join uap_role r on t.opid=r.id where t.id=" + id, 0);
}
catch (Exception ex)
{
return ex.Message;
}
}
public string save(int id, JSON data)
{
DataBase.Transaction();
try
{
if (id == 0)
{
data.Add("opid", UAP.Role.Id);
DataBase.Insert("ec_shipping_temp", true, data);
}
else
{
DataBase.Update("ec_shipping_temp", "id=" + id, data);
}
DataBase.Commit();
return "ok";
}
catch (Exception ex)
{
DataBase.Rollback();
return ex.Message;
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。