Browse Source

调整返现队列

lcl 1 year ago
parent
commit
7751ee6267
2 changed files with 3 additions and 3 deletions
  1. 2 1
      Util/HaoDa/ProfitHelper.cs
  2. 1 2
      Util/RedisDbconn.cs

+ 2 - 1
Util/HaoDa/ProfitHelper.cs

@@ -186,6 +186,7 @@ namespace MySystem
                                                     {
                                                         function.WriteLog("返现未达最大值继续", "返现逻辑日志");
                                                         // RedisDbconn.Instance.AddList("ConsumerOrdersHd:Divi:" + PayMode + ":" + MerchantId, suborder);
+                                                        RedisDbconn.Instance.SetList("ConsumerOrders:Divi:" + PayMode + ":" + MerchantId, 0, suborder);
                                                     }
                                                     else
                                                     {
@@ -519,7 +520,7 @@ namespace MySystem
         {
             while (true)
             {
-                string content = RedisDbconn.Instance.RPop<string>("ConsumerOrdersSetDivi");
+                string content = RedisDbconn.Instance.RPop<string>("ConsumerOrdersSetDiviHd");
                 if (!string.IsNullOrEmpty(content))
                 {
                     SetDivi(content);

+ 1 - 2
Util/RedisDbconn.cs

@@ -127,8 +127,7 @@ namespace MySystem
         #region 修改列表对象
         public bool SetList(string key, int index, object value)
         {
-            long itemindex = RedisHelper.LLen(key) - index - 1;
-            return RedisHelper.LSet(key, itemindex, value);
+            return RedisHelper.LSet(key, index, value);
             // return false;
         }
         #endregion