Pārlūkot izejas kodu

ownerAccount 如果不需要收单 就算不在线也可以分配转链

dodo hold 3 mēneši atpakaļ
vecāks
revīzija
8c19e3a650
1 mainītis faili ar 10 papildinājumiem un 10 dzēšanām
  1. 10 10
      molilian.core/Core/taoke/TkPoolCore.cs

+ 10 - 10
molilian.core/Core/taoke/TkPoolCore.cs

@@ -116,11 +116,11 @@ namespace molilian.core
                     !string.IsNullOrEmpty(other.related_account_ids) &&
                     other.related_account_ids.Split(',').Contains(item.id.ToString()));
 
-                // 如果没有账号关联它,或者关联它的账号在线(在list中),则可以使用
-                if (ownerAccount == null || list.Any(a => a.id == ownerAccount.id))
-                {
-                    filteredList.Add(item);
-                }
+                // 如果没有账号关联它,或者关联它的账号在线,或者主账号不需要补点击,则可以使用
+                if (ownerAccount == null || list.Any(a => a.id == ownerAccount.id) || !ownerAccount.enable_fake_click)
+                {
+                    filteredList.Add(item);
+                }
             }
 
             foreach (var item in list)
@@ -131,11 +131,11 @@ namespace molilian.core
                     !string.IsNullOrEmpty(other.related_account_ids) &&
                     other.related_account_ids.Split(',').Contains(item.id.ToString()));
 
-                // 如果没有账号关联它,或者关联它的账号在线(在list中),则可以使用
-                if (ownerAccount == null || list.Any(a => a.id == ownerAccount.id))
-                {
-                    filteredList.Add(item);
-                }
+                // 如果没有账号关联它,或者关联它的账号在线,或者主账号不需要补点击,则可以使用
+                if (ownerAccount == null || list.Any(a => a.id == ownerAccount.id) || !ownerAccount.enable_fake_click)
+                {
+                    filteredList.Add(item);
+                }
             }
 
             if (filteredList.Count == 0) return null;