|
@@ -802,6 +802,13 @@ class BetService extends BaseService
|
|
|
$item['profit'] = $profit;
|
|
$item['profit'] = $profit;
|
|
|
|
|
|
|
|
$yl = bcsub($profit, $amount, 2); // 盈利
|
|
$yl = bcsub($profit, $amount, 2); // 盈利
|
|
|
|
|
+
|
|
|
|
|
+ WalletService::updateBalance($v['member_id'], $profit);
|
|
|
|
|
+
|
|
|
|
|
+ $walletInfo = WalletService::findOne(['member_id' => $v['member_id']]);
|
|
|
|
|
+ $balance = $walletInfo['available_balance'];
|
|
|
|
|
+
|
|
|
|
|
+ BalanceLogService::addLog($v['member_id'], $profit, $balance, ($balance + $profit), '中奖', $v['id'], '');
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|