mobile/ajax/save_photos.ashx
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
<%@ WebHandler Language="C#" Class="save_photos" %>
using System;
using System.Web;
using mobile_Model;
using mobile_BLL;
using Jayrock.Json;
using System.IO;
public class save_photos : IHttpHandler {
public void ProcessRequest (HttpContext context) {
HttpRequest Request = context.Request;
HttpResponse Response = context.Response;
JsonObject json = new JsonObject();
try
{
if (Request["vpid"] != null)
{
N25175_VIP_Photo_BLL bll = new N25175_VIP_Photo_BLL();
if(bll.Delete(new Guid(Request["vpid"].ToString())))
{
json.Accumulate("state", 1);
json.Accumulate("data", "删除成功");
}
else
{
json.Accumulate("state", -1);
json.Accumulate("data", "删除失败");
}
}
else
{
HttpFileCollection file = Request.Files;
if (file.Count != 0)
{
for (int i = 0; i < file.Count; i++)
{
HttpPostedFile postfile = file[i];
N25175_VIP_Photo_BLL bll = new N25175_VIP_Photo_BLL();
N25175_VIP_Photo_Model model = new N25175_VIP_Photo_Model();
model.vp_id = Guid.NewGuid();
string dir = context.Server.MapPath("~/marriage/control/ps/"+N25175_VIP_BLL.GetLoginID()+"/");
if (!Directory.Exists(dir))
{
Directory.CreateDirectory(dir);
}
model.vp_vid = new Guid(N25175_VIP_BLL.GetLoginID());
model.vp_title = Request["name"].ToString();
model.vp_imgPath = N25175_VIP_BLL.GetLoginID();
model.vp_cdate = DateTime.Now;
后面还有 36 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。