MxWeiXinPF.Web/weixin/xitie/xitie.ashx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MxWeiXinPF.Common;
namespace MxWeiXinPF.Web.weixin.xitie
{
/// <summary>
/// xitie 的摘要说明
/// </summary>
public class xitie : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/json";
string openid = MyCommFun.QueryString("openid");//openid
int bid = MyCommFun.RequestInt("id");
string tel = MyCommFun.QueryString("telephone");
string name = MyCommFun.QueryString("userName");
string type = MyCommFun.QueryString("type");
Dictionary<string, string> jsonDict = new Dictionary<string, string>();
if (type == "bm")
{
int renshu = MyCommFun.RequestInt("count");
//报名参与婚礼
BLL.wx_xt_user ubll = new BLL.wx_xt_user();
Model.wx_xt_user user = new Model.wx_xt_user();
user.bId = bid;
user.openid = openid;
user.phone = tel;
user.uName = name;
user.pNum = renshu;
user.createDate = DateTime.Now;
int ret = ubll.Add(user);
if (ret > 0)
{
jsonDict.Add("ret", "报名成功!");
}
else
{
jsonDict.Add("ret", "报名失败,请重新报名!");
}
context.Response.Write(MyCommFun.getJsonStr(jsonDict));
}
else if (type == "zf")
{
string content = MyCommFun.QueryString("content");
//祝福语
BLL.wx_xt_zhufu zbll = new BLL.wx_xt_zhufu();
Model.wx_xt_zhufu zf = new Model.wx_xt_zhufu();
zf.message = content;
zf.openid = openid;
zf.phone = tel;
zf.uName = name;
后面还有 30 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
