MxWeiXinPF.Web/weixin/wfangchan/cldata.ashx.cs
(开头部分) 11KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MxWeiXinPF.Common;
using System.Text;
using System.Data;
namespace MxWeiXinPF.Web.weixin.wfangchan
{
/// <summary>
/// cldata 的摘要说明
/// </summary>
public class cldata : IHttpHandler
{
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/json";
string action = MXRequest.GetQueryString("myact");
int wid = MyCommFun.RequestInt("wid");
string openid = MyCommFun.RequestOpenid();
#region 添加印象
if (action == "fyyx")
{
BLL.wx_fc_fyImpression fBll = new BLL.wx_fc_fyImpression();
Dictionary<string, string> jsondict = new Dictionary<string, string>();
string imp_user = MyCommFun.QueryString("imp_user");
int fid = MyCommFun.RequestInt("fid");
int record = fBll.GetRecordCount(" content='" + imp_user + "'");
int allrw = fBll.GetRecordCount(" id>0 ");
int rep = fBll.GetRecordCount(" openid='" + openid + "'");
if (rep > 0)
{
jsondict.Add("errno", "2");
jsondict.Add("res", "你已经添加过印象了");
context.Response.Write(MyCommFun.getJsonStr(jsondict));
return;
}
if (record > 0)//有过此类印象
{
double re = (Convert.ToDouble(record) / allrw) * 100;
jsondict.Add("res", re.ToString() + "%");
}
else //独特印象
{
jsondict.Add("res", "1");
}
Model.wx_fc_fyImpression fModel = new Model.wx_fc_fyImpression();
fModel.content = imp_user;
fModel.createDate = DateTime.Now;
fModel.fid = fid;
fModel.openid = openid;
fModel.sort_id = 1;
fModel.wid = wid;
fModel.quantity = 1;
fBll.Add(fModel);
jsondict.Add("errno", "1");
后面还有 228 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
