Parcourir la source

添加分账结果推送入口

lcl il y a 10 mois
Parent
commit
9e8c285caa
1 fichiers modifiés avec 14 ajouts et 0 suppressions
  1. 14 0
      Areas/Api/Controllers/PartOrderController.cs

+ 14 - 0
Areas/Api/Controllers/PartOrderController.cs

@@ -39,6 +39,20 @@ namespace MySystem.Areas.Api.Controllers.v1
         }
         #endregion
 
+        #region 分账结果回调(好哒)
+        [Route("/api/partorder/resultnotice")]
+        public Dictionary<string, string> ResultNotice()
+        {
+            StreamReader sr = new StreamReader(Request.Body);
+            string requestMes = sr.ReadToEnd();
+            function.WriteLog(DateTime.Now.ToString() + "\n" + requestMes + "\r\n\r\n", "分账结果回调(好哒)");
+            RedisDbconn.Instance.AddList("PartOrderResultQueue", requestMes);
+            Dictionary<string, string> dic = new Dictionary<string, string>();
+            dic.Add("resultCode", "1");
+            return dic;
+        }
+        #endregion
+
 
 
     }