stanley-king 3 年之前
父節點
當前提交
3954fdb865
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      helper/refill/policy/chctl.php

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

@@ -255,9 +255,10 @@ class chctl
 
         $desctor = function ($item) use($out_price) {
             $name = $item->name();
+            $in_price = $item->price();
             [$count,$ratio] = $item->notify_ratio();
             $profit = ncPriceFormat(($out_price - $item->price()) * $ratio);
-            return "{$name} count={$count} ratio={$ratio} profit={$profit}";
+            return "{$name} count={$count} profit={$profit} = ({$out_price} - {$in_price}) X {$ratio}";
         };
 
         $feed_names = [];