|
@@ -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;
|