MxWeiXinPF.Web/weixin/zjd/zjd.ashx.cs
(开头部分) 16KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using MxWeiXinPF.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace MxWeiXinPF.Web.weixin.zjd
{
/// <summary>
/// zjd 的摘要说明
/// </summary>
public class zjd : IHttpHandler
{
BLL.wx_zjdActionInfo actbll = new BLL.wx_zjdActionInfo();
BLL.wx_zjdAwardUser ubll = new BLL.wx_zjdAwardUser();
BLL.wx_zjdUsersTemp utbll = new BLL.wx_zjdUsersTemp();
public void ProcessRequest(HttpContext context)
{
Dictionary<string, string> jsonDict = new Dictionary<string, string>();
context.Response.ContentType = "text/json";
string _action = MyCommFun.QueryString("myact");
int aid = MyCommFun.RequestInt("aid");
int wid = MyCommFun.RequestInt("wid");
string openid = MyCommFun.QueryString("openid");
if (_action == "choujiang")
{
BLL.wx_zjdAwardItem itemBll = new BLL.wx_zjdAwardItem();
Model.wx_zjdActionInfo zjdAction = new Model.wx_zjdActionInfo();
#region 判断
if (aid == 0 || wid == 0 || openid.Trim() == "")
{
jsonDict.Add("error", "sys");
jsonDict.Add("content", "参数错误!");
context.Response.Write(MyCommFun.getJsonStr(jsonDict));
return;
}
zjdAction = actbll.GetModel(aid);
if (zjdAction == null)
{
jsonDict.Add("error", "sys");
jsonDict.Add("content", "参数错误!");
context.Response.Write(MyCommFun.getJsonStr(jsonDict));
return;
}
if (zjdAction.endDate <= DateTime.Now)
{ //说明活动已经结束
//非活动期间
jsonDict.Add("error", "end");
jsonDict.Add("content", "活动已结束");
context.Response.Write(MyCommFun.getJsonStr(jsonDict));
return;
}
else if (zjdAction.beginDate > DateTime.Now)
{
后面还有 375 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
