seven vor 17 Stunden
Ursprung
Commit
c71d62ea53
1 geänderte Dateien mit 2 neuen und 1 gelöschten Zeilen
  1. 2 1
      app/Services/BetService.php

+ 2 - 1
app/Services/BetService.php

@@ -336,8 +336,9 @@ class BetService extends BaseService
         $text = "";
         $text .= "期数--内容--盈亏 \n";
         foreach($list->toArray() as $k => $v){
+            $profit = $v['profit'] - $v['amount'];
             // $text .= $v['issue_no']." ".$v['keywords']." ".$v['amount']." ".$v['profit']."\n";
-            $item = $v['issue_no']."--".$v['keywords'].rtrim(rtrim(number_format($v['amount'], 2, '.', ''), '0'), '.')."--".rtrim(rtrim(number_format($v['profit'], 2, '.', ''), '0'), '.')."\n";
+            $item = $v['issue_no']."--".$v['keywords'].rtrim(rtrim(number_format($v['amount'], 2, '.', ''), '0'), '.')."--".rtrim(rtrim(number_format($profit, 2, '.', ''), '0'), '.')."\n";
             $text .= $item;
         }
         // $text .= "```\n";