Web/alipay/HaiHaoPay.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using Seven.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
namespace Web.alipay
{
public class HaiTaoPay : System.Web.UI.Page
{
public void HataoAliPayAsynchronous(SortedDictionary<string, string> sPara, string out_trade_no, string trade_no, string trade_status)
{
if (sPara["subject"].Contains("团购"))
{
BLL.groupbuy_order_detail bll = new BLL.groupbuy_order_detail();
MODEL.groupbuy_order_detail model = bll.GetModel(" OrderNum='" + out_trade_no + "'");
if (model.status_order == 1)
{
model.AlipayNo = trade_no;
model.status_alipay = trade_status;
model.status_order = 2;
model.alipayid = sPara["buyer_email"];
model.paytime = DateTime.Now;
model.expect_price = Convert.ToDecimal(sPara["total_fee"]);
if (bll.Update(model))
{
#region 添加积分
BLL.score scorebll = new BLL.score();
MODEL.score scoremodel = new MODEL.score();
scoremodel.add_time = DateTime.Now;
scoremodel.classid = 1;//消费积分分类
scoremodel.demo = "消费订单号" + sPara["subject"] + "*";
scoremodel.scores = StringUtils.GetDecimal(sPara["total_fee"]) / 100;
scoremodel.userid = model.participationuserid;
if (scorebll.Add(scoremodel))
{
BLL.user userbll = new BLL.user();
MODEL.user usermodel = userbll.GetModel("id=" + scoremodel.userid);
usermodel.scores += scoremodel.scores;
userbll.Update(usermodel);
}
#endregion
Response.Redirect("http://www.xxx.com/MyCenter.aspx");
}
else
{
LogHelper.Write(DateTime.Now + "订单" + out_trade_no + "发生添加信息操作失败", "支付宝异步操作页面");
Response.Redirect("http://www.xxx.com/MyCenter.aspx");
}
}
else
{
Response.Redirect("http://www.xxx.com/MyCenter.aspx");
}
}
else
{
BLL.orders bll = new BLL.orders();
后面还有 44 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
