SenBiTeSolution.UI/Http_ImgLoad.ashx.cs
(完整代码) 1KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.IO;
using SenBiTeSolution.Common;
namespace SenBiTeSolution.UI
{
/// <summary>
/// Http_ImgLoad 的摘要说明
/// </summary>
public class Http_ImgLoad : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
int strW;
int strH;
if (int.TryParse(context.Request.Params["w"], out strW) && int.TryParse(context.Request.Params["h"], out strH))
{
context.Response.Clear();
string gurl = context.Request.Params["gurl"];
gurl = "ProductImg\\" + gurl;
if (!string.IsNullOrEmpty(gurl))
{
if (File.Exists(context.Server.MapPath(gurl)))
{
LoadImage.GenThumbnail(gurl, strW, strH);
}
else
{
//LoadImage.GenThumbnail("/images/nopic.gif", strW, strH);
}
}
else
{
//LoadImage.GenThumbnail("/images/nopic.gif", strW, strH);
}
}
}
public bool IsReusable
{
get
{
return false;
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。