stanley-king %!s(int64=3) %!d(string=hai) anos
pai
achega
3954fdb865
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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 = [];