Ken 2 saat önce
ebeveyn
işleme
a154531276
1 değiştirilmiş dosya ile 7 ekleme ve 4 silme
  1. 7 4
      app/Services/BetService.php

+ 7 - 4
app/Services/BetService.php

@@ -636,17 +636,20 @@ class BetService extends BaseService
                     $profit = 880000; // 单注最高奖金880000
                 }
 
+
+
+                $item['profit'] = $profit;
+
+                // $yl = $profit - $amount;
+                $yl = bcsub($profit, $amount, 2); // 盈利
                 if (!in_array('13操', $awards) && !in_array('14操', $awards)) {
                     Rebate::updateProfit([
                         'member_id' => $v['member_id'],
-                        'profit' => $profit,
+                        'profit' => $yl,
                     ]);
                 }
 
-                $item['profit'] = $profit;
 
-                // $yl = $profit - $amount;
-                $yl = bcsub($profit, $amount, 2); // 盈利
                 $memberList[$v['member_id']][] = [
                     'member_id' => $v['member_id'],
                     'keywords' => $v['keywords'],