seven 3 days ago
parent
commit
6db7f3758a
1 changed files with 3 additions and 1 deletions
  1. 3 1
      app/Services/BetService.php

+ 3 - 1
app/Services/BetService.php

@@ -441,8 +441,10 @@ class BetService extends BaseService
 
         $keyboard = [];
 
+        $total_amount = BalanceLogService::model()::where('member_id',$memberId)->where('change_type','中奖')->sum('amount');
+        $total_amount = number_format($total_amount, 2);
         $text = "历史注单 \n";
-
+        $text .="中奖总金额:{$total_amount} \n";
         foreach ($list as $k => $v) {
             if($v->status == self::model()::STATUS_SETTLED){
                 $phase = $v->profit - $v->amount;