摇一摇优惠券开源码/51wsb_weijuan/run.ashx.cs
(开头部分) 15KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Services;
using System.Web.Services.Protocols;
using System.Xml.Linq;
using System.Data.SqlClient;
namespace wxyaoyao
{
/// <summary>
/// $codebehindclassname$ 的摘要说明
/// </summary>
[WebService(Namespace = "http://tempuri.org/")]
[WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
public class run : IHttpHandler
{
//粉丝信息
public string openid = "";
public int hdid = 0;
public int cjcount = 0;
public string sharetime = "";
//活动信息
public DateTime endtime;
public double gailv = 0;//中奖概率
public void ProcessRequest(HttpContext context)
{
//1中奖,2没中奖,3抽奖次数已经用完提示分享,4抽奖机会用完,5已经使用红包不可抽奖,6你来晚了,全部金额已经被抢光了!,7活动还没开始,8活动已结束。其他值为系统繁忙请重试
context.Response.ContentType = "text/plain";
//不让浏览器缓存
context.Response.Buffer = true;
context.Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
context.Response.AddHeader("pragma", "no-cache");
context.Response.AddHeader("cache-control", "");
context.Response.CacheControl = "no-cache";
context.Response.ContentType = "text/plain";
if (context.Request.Cookies["wxyaoyao"] != null)
{
openid =context.Request.Cookies["wxyaoyao"]["openid"];
hdid = Convert.ToInt32(context.Request["hdid"]);
if (openBool(openid, hdid) == true)
{
ReaderOpenid(openid, hdid);//粉丝锁定
ReaderYaoyao(hdid);//活动基本信息
//内核逻辑处理
cjcount = mycjcount(hdid,openid);
try
{
//活动是否结束
if (endtime > DateTime.Now)
{
if (cjcount > 0)
{
updateOpencj(openid, hdid);//更新粉丝抽奖情况
string redcount = myredcount(hdid, openid).ToString();
后面还有 317 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
