浏览代码

Merge branch 'master' of http://47.76.126.2:3000/seven/bot-28

Ken 5 天之前
父节点
当前提交
2142a21f73
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      app/Services/BetService.php

+ 3 - 1
app/Services/BetService.php

@@ -467,8 +467,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;