Web/App/Android/GetShopDetailByShopId.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using 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;
using Newtonsoft.Json;
public partial class AndroidAPI_GetShopDetailByShopId_2 : APIPageBase
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();
StringBuilder shoplistjson = new StringBuilder();
//苹果测试 返回的坐标可能是负数,有- 符号 会被当成是sql注入被过滤,暂时取消安全检查
string lat = HjNetHelper.GetQueryStringFix("lat", false).Replace('-', ' ').Trim();
string lng = HjNetHelper.GetQueryStringFix("lng", false).Replace('-', ' ').Trim();
//string lat = HjNetHelper.GetPostParam("lat");
//string lng = HjNetHelper.GetPostParam("lng");
Points daltogo = new Points();
int shopid = HjNetHelper.GetPostParam("shopid", 0);
int userid = HjNetHelper.GetPostParam("userid", 0);
IList<PointsInfo> list = daltogo.GetDistanceListSuper(1, 1, "Points.unid =" + shopid, "sortnum", 1, lat, lng, "1=1");
IList<shopdeliveryInfo> deliveryrecord = new shopdelivery().GetList(" tid = " + shopid);
IList<ShopFoodPictureInfo> piclist = CacheHelper.GetShopPicTag();
string newsid = "0";
string newstiele = "";
foreach (PointsInfo togo in list)
{
foreach (var record in deliveryrecord)
{
if (record.distancestart <= togo.Distance && record.distanceend > togo.Distance)
{
togo.SendFee = record.sendmoney;
togo.SendLimit = record.minmoney;
break;
}
}
string timestart2 = "";
string timeend2 = "";
if (togo.Opentimes1.ToString("HH:mm") == togo.Closetimes1.ToString("HH:mm"))
{
timestart2 = "";
timeend2 = "";
后面还有 93 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
