|
@@ -340,7 +340,6 @@ class mratio_control
|
|
|
$profit_ratio = round($profit_ratio,4);
|
|
|
|
|
|
Log::record("{$header} cur_pratio = {$cur_pratio},profit_ratio={$profit_ratio}",Log::DEBUG);
|
|
|
-
|
|
|
return $cur_pratio > $profit_ratio;
|
|
|
};
|
|
|
|
|
@@ -432,9 +431,10 @@ class mratio_control
|
|
|
$profit_ratio = $this->profit_ratio($mchid);
|
|
|
$can_next = $profit_judger($mchid, $qtsex, $org_quality, $period, $profit_ratio, $header);
|
|
|
|
|
|
- if(!$can_next)
|
|
|
+ if($can_next)
|
|
|
{
|
|
|
$max_spec = $spec_max($mchid,$qtsex, $org_quality, $qualities, $low_ratio,$period);
|
|
|
+ Log::record("max_spec={$max_spec}",Log::DEBUG);
|
|
|
if($max_spec >= $spec) {
|
|
|
return false;
|
|
|
} else {
|