seven 2 天之前
父節點
當前提交
61350ba4fd
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      app/Services/BetService.php

+ 1 - 1
app/Services/BetService.php

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