回调的使用,记的加post

[HttpPost]
public void notify_url()
{
SortedDictionary<string, string> sPara = GetRequestPost();
System.IO.File.AppendAllText(Server.MapPath("~/App_Data/log.txt"), " rateCount: " + "米亚回调"+DateTime.Now.ToString());
if (sPara.Count > 0)//判断是否有带返回参数
{
Notify aliNotify = new Notify();
bool verifyResult = aliNotify.Verify(sPara, Request.Form["notify_id"], Request.Form["sign"]);服务器

if (verifyResult)//验证成功
{
/////////////////////////////////////////////////////////////////////////////////////////////////////////////
//请在这里加上商户的业务逻辑程序代码
int rateCount = 0;
System.IO.File.AppendAllText(Server.MapPath("~/App_Data/log.txt"), " rateCount: " + rateCount);
System.IO.File.AppendAllText(Server.MapPath("~/App_Data/log.txt"), " productReviews.Count: " + "什么状况呢");
System.IO.File.AppendAllText(Server.MapPath("~/App_Data/log.txt"), " rateMean: " + rateCount);异步

//——请根据您的业务逻辑来编写程序(如下代码仅做参考)——
//获取支付宝的通知返回参数,可参考技术文档中服务器异步通知参数列表url

//商户订单号orm

string out_trade_no = Request.Form["out_trade_no"];支付宝

var targetUsert = _RegistrationInformationService.GetAllRegistrationInformations().Where(p => p.OrderNumber == out_trade_no).FirstOrDefault();
targetUsert.IsPayed = true;
_RegistrationInformationService.UpdateRegistrationInformation(targetUsert);文档

相关文章
相关标签/搜索