stanley-king 3 tahun lalu
induk
melakukan
e1a479cdb1
1 mengubah file dengan 4 tambahan dan 3 penghapusan
  1. 4 3
      helper/refill/policy/chctl.php

+ 4 - 3
helper/refill/policy/chctl.php

@@ -163,6 +163,7 @@ class chctl
     const timeout_level = 180;
     const sleep_time = 3600;
     const sleep_count = 10;
+    const profit_count = 90;
 
     private function sleep_item($ctls)
     {
@@ -267,7 +268,7 @@ class chctl
             {
                 if($lCount > $rCount) //此时优先喂单
                 {
-                    if($rCount >= self::sleep_count) //单量都大于阈值,优先利润
+                    if($rCount >= self::profit_count) //单量都大于阈值,优先利润
                     {
                         if($lProfit > $rRrofit) return -1;
                         elseif($lProfit < $rRrofit) return 1;
@@ -279,7 +280,7 @@ class chctl
                 }
                 elseif($lCount < $rCount)
                 {
-                    if($lCount >= self::sleep_count) //单量都大于阈值,优先利润
+                    if($lCount >= self::profit_count) //单量都大于阈值,优先利润
                     {
                         if($lProfit > $rRrofit) return -1;
                         elseif($lProfit < $rRrofit) return 1;
@@ -292,7 +293,7 @@ class chctl
                 else
                 {
                     $count = $lCount;
-                    if($count >= self::sleep_count) //单量都大于阈值,优先利润
+                    if($count >= self::profit_count) //单量都大于阈值,优先利润
                     {
                         if($lProfit > $rRrofit) return -1;
                         elseif($lProfit < $rRrofit) return 1;