浏览代码

判断回调类型

lcl 10 月之前
父节点
当前提交
c01f5f2541
共有 1 个文件被更改,包括 10 次插入17 次删除
  1. 10 17
      Areas/Api/Controllers/PartOrderController.cs

+ 10 - 17
Areas/Api/Controllers/PartOrderController.cs

@@ -31,29 +31,22 @@ namespace MySystem.Areas.Api.Controllers.v1
         {
             StreamReader sr = new StreamReader(Request.Body);
             string requestMes = sr.ReadToEnd();
-            function.WriteLog(DateTime.Now.ToString() + "\n" + TypeName + "::" + requestMes + "\r\n\r\n", "分账回调(好哒)");
-            RedisDbconn.Instance.AddList("PartOrderQueue", requestMes);
+            if(TypeName == "part_status")
+            {
+                function.WriteLog(DateTime.Now.ToString() + "\n" + TypeName + "::" + requestMes + "\r\n\r\n", "分账结果回调(好哒)");
+                RedisDbconn.Instance.AddList("PartOrderStatusQueue", requestMes);
+            }
+            else
+            {
+                function.WriteLog(DateTime.Now.ToString() + "\n" + TypeName + "::" + requestMes + "\r\n\r\n", "分账回调(好哒)");
+                RedisDbconn.Instance.AddList("PartOrderQueue", requestMes);
+            }
             Dictionary<string, string> dic = new Dictionary<string, string>();
             dic.Add("resultCode", "1");
             return dic;
         }
         #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
-
-
 
     }
 }