浏览代码

fix compare algo

stanley-king 2 年之前
父节点
当前提交
5a39e0844b
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      helper/refill/policy/chctlex.php

+ 1 - 1
helper/refill/policy/chctlex.php

@@ -222,7 +222,7 @@ class chctlex
             $rRrofit = $out_price - $r->price();
 
             $lVal = $l->compile_val($lProfit);
-            $rVal = $r->compile_val($lProfit);
+            $rVal = $r->compile_val($rRrofit);
 
             Log::record("auto_match desc_profit lname={$l->name()} lval={$lVal} rname={$r->name()} rval={$rVal}",Log::DEBUG);