Web/App/Android/SaveCollection.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using WMPT.Model;
using WMPT.SQLServerDAL;
using WMPT.Common;
/// <summary>
/// 用户收藏
/// </summary>
public partial class APP_Android_SaveCollection : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
Response.Clear();
//传入参数
ETogoCollect dal = new ETogoCollect();
ETogoCollectInfo info = new ETogoCollectInfo();
info.togoid = HjNetHelper.GetPostParam("togoid", 0);
info.userid = HjNetHelper.GetPostParam("userid", 0);
info.ctime = DateTime.Now;
info.inve1 = 0;
info.inve2 = "";
StringBuilder json = new StringBuilder();
int op = Convert.ToInt32(Request["op"]);
if (op == 1)
{
//检查昵称是否有重复的
if (dal.GetTogoCount("userid=" + info.userid + " and togoid=" + info.togoid + "") > 0)
{
json.Append("{\"state\":\"2\"}");
}
else
{
if (dal.AddTogo(info) > 0)
{
json.Append("{\"state\":\"1\"}");
}
else
{
json.Append("{\"state\":\"0\"}");
}
}
}
if (op == -1)
{
if (dal.GetTogoCount("userid=" + info.userid + " and togoid=" + info.togoid + "") > 0)
{
if (dal.DelETogoCollect(info.userid, info.togoid) > 0)
{
后面还有 18 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
