瀏覽代碼

Merge branch 'raccount' of 39.97.239.116:gyfl/xyzshop into raccount

xiaoyu 2 年之前
父節點
當前提交
a461b2a783
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. 2 1
      helper/refill/policy/chctlex.php
  2. 1 1
      helper/refill/policy/ctl_itemex.php

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

@@ -292,6 +292,7 @@ class chctlex
 
             foreach ($ctls as $item)
             {
+                Log::record("ctl_splitor {$item->name()} speed={$item->cur_speed()} max_speed={$item->max_speed()}",Log::DEBUG);
                 if($item->need_feed()) {
                     $feeds[] = $item;
                 }
@@ -369,7 +370,7 @@ class chctlex
             $names[] = $item->name();
         }
 
-        Log::record("auto_match result names=" . implode(',', $names), Log::DEBUG);
+        Log::record("auto_match {$card_type}-{$spec} result names=" . implode(',', $names), Log::DEBUG);
         return $names;
     }
 }

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

@@ -135,7 +135,7 @@ class ctl_itemex
 
     public function compile_val($profit_ratio)
     {
-        $val = $this->mRatio * sqrt($profit_ratio) * 100 / $this->mNotifyTime;
+        $val = sqrt($this->mRatio * $profit_ratio) * 100 / $this->mNotifyTime;
         return round($val,5);
     }
 }