stanley-king 3 years ago
parent
commit
3954fdb865
1 changed files with 2 additions and 1 deletions
  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 = [];