瀏覽代碼

添加新的支付宝回调地址,对应商户版的app应用

lcl 1 年之前
父節點
當前提交
f1a282a01a
共有 1 個文件被更改,包括 8 次插入0 次删除
  1. 8 0
      Areas/Api/Controllers/AlipayController.cs

+ 8 - 0
Areas/Api/Controllers/AlipayController.cs

@@ -121,6 +121,14 @@ namespace MySystem.Areas.Api.Controllers.v1
 
         // 支付回调
         public string NoticePay()
+        {
+            StreamReader sr = new StreamReader(Request.Body);
+            string requestMes = sr.ReadToEnd();
+            function.WriteLog(DateTime.Now.ToString() + "\r\n" + requestMes + "\r\n\r\n", "支付宝支付回调");
+            return PayCallBack2("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAnw14hKejqS+si/XZpNQpFAVOVXJIThj5Qn7H14n/vsb7uRLug1+Jcve8ehTkaN3s5ibrrELCnz0dvshi3cOz9svDSbLG5OdC1biAvZzpDkvVPswOd9f9jO8Jvqk3QTXTI3MSN9gOpKomI0te3qs5kkOQx6kRozzKjU/G//o/PbJCxpBxf/QNRV3XmCwJLZMBE7ukYqi1WO9Jra8jdczFKwrd/nhiKBKdupAtVVeKlylGD2i2YLkGAH1cLsPUN9DtzrXNblGXm2HK3l9SnMDjqnakiVdEQJTNYNpEiHaOJsVmPQL38nM6miz5wNd4gTchKzXPtoZWqto+eIvYaEA/KwIDAQAB", requestMes);
+        }
+
+        public string NoticePay2()
         {
             StreamReader sr = new StreamReader(Request.Body);
             string requestMes = sr.ReadToEnd();