|
|
@@ -46,7 +46,7 @@ class RechargeWithDraw
|
|
|
|
|
|
}
|
|
|
|
|
|
- public function withDraw($UserID, $WithDraw, $Fee = 0)
|
|
|
+ public function withDraw($UserID, $WithDraw, $Fee = 0, $ServiceFee = 0)
|
|
|
{
|
|
|
try {
|
|
|
|
|
|
@@ -63,6 +63,7 @@ class RechargeWithDraw
|
|
|
->update([
|
|
|
'total_cash' => DB::raw('total_cash+' . $WithDraw),
|
|
|
'total_cash_fee' => DB::raw('total_cash_fee+' . $Fee),
|
|
|
+ 'total_service_fee' => DB::raw('total_service_fee+' . $ServiceFee),
|
|
|
]);
|
|
|
|
|
|
DB::connection('mysql')->table('rummy_cash_statistics')
|
|
|
@@ -71,6 +72,7 @@ class RechargeWithDraw
|
|
|
->update([
|
|
|
'total_cash' => DB::raw('total_cash+' . $WithDraw),
|
|
|
'total_cash_fee' => DB::raw('total_cash_fee+' . $Fee),
|
|
|
+ 'total_service_fee' => DB::raw('total_service_fee+' . $ServiceFee),
|
|
|
]);
|
|
|
} catch (\Exception $exception) {
|
|
|
Log::info('【提现】数据统计后台信息添加失败' . $UserID . ' - ' . $WithDraw);
|