Web/App/shop/GetFoodDetailByFoodId.aspx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using WMPT.Model;
using WMPT.SQLServerDAL;
using WMPT.Common;
public partial class App_shop_GetFoodDetailByFoodId : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();
StringBuilder shoplistjson = new StringBuilder();
Foodinfo daltogo = new Foodinfo();
int foodid = HjNetHelper.GetPostParam("foodid", 0);
FoodinfoInfo Togomodel = daltogo.GetModel(foodid);
if (Togomodel != null)
{
shoplistjson.Append("{");
shoplistjson.Append("\"Name\":\"" + Togomodel.FoodName.ToString() + "\",");
shoplistjson.Append("\"Picture\":\"" + Togomodel.Picture.Replace("~", WebUtility.GetConfigsite()) + "\",");
shoplistjson.Append("\"FoodType\":\"" + Togomodel.FoodType + "\",");
shoplistjson.Append("\"Funit\":\"" + 0 + "\","); //现未用
shoplistjson.Append("\"IsDelete\":\"" + Togomodel.InUse + "\",");
shoplistjson.Append("\"MaxPerDay\":\"" + 0 + "\",");//现未用
shoplistjson.Append("\"Remains\":\"" + 0 + "\",");//现未用
shoplistjson.Append("\"SortNum\":\"" + Togomodel.OrderNum + "\",");
shoplistjson.Append("\"Weekday\":\"" + 0 + "\",");//现未用
shoplistjson.Append("\"nprice\":\"" + Togomodel.FPrice.ToString() + "\",");
shoplistjson.Append("\"istuan\":\"" + 0 + "\",");
shoplistjson.Append("\"Price\":\"" + 0 + "\"");//现未用
shoplistjson.Append("}");
Response.Write(shoplistjson.ToString());
}
else
{
Response.Write("{\"foodid\":\"" + foodid + "\",\"state\":\"0\"}");
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
