修改 字段
This commit is contained in:
parent
f0c39a8a72
commit
92d92d445a
@ -164,7 +164,7 @@ private function addLog($user_id, $data)
|
|||||||
$user = User::find($user_id);
|
$user = User::find($user_id);
|
||||||
|
|
||||||
$current = [
|
$current = [
|
||||||
'balances' => $user->balance,
|
'balance' => $user->balance,
|
||||||
'drops' => $this->getDrops($user_id),
|
'drops' => $this->getDrops($user_id),
|
||||||
'user_id' => intval($user_id),
|
'user_id' => intval($user_id),
|
||||||
];
|
];
|
||||||
@ -198,7 +198,7 @@ public function getDrops($user_id = null): float
|
|||||||
return $drops['drops'];
|
return $drops['drops'];
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addIncomeDrops($user_id, $amount, $description, $payment = 'balances')
|
public function addIncomeDrops($user_id, $amount, $description, $payment = 'balance')
|
||||||
{
|
{
|
||||||
$data = [
|
$data = [
|
||||||
'type' => 'income',
|
'type' => 'income',
|
||||||
@ -232,8 +232,6 @@ public function reduceAmount($user_id, $amount = 0, $description = '扣除费用
|
|||||||
} finally {
|
} finally {
|
||||||
optional($lock)->release();
|
optional($lock)->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addPayoutBalance($user_id, $amount, $description, $module_id = null)
|
public function addPayoutBalance($user_id, $amount, $description, $module_id = null)
|
||||||
@ -280,8 +278,6 @@ public function reduceAmountModuleFail($user_id, $module_id, $amount = 0, $descr
|
|||||||
} finally {
|
} finally {
|
||||||
optional($lock)->release();
|
optional($lock)->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function reduceHostAmount($user_id, $host_id, $module_id, $amount = 0, $description = '扣除费用请求。')
|
public function reduceHostAmount($user_id, $host_id, $module_id, $amount = 0, $description = '扣除费用请求。')
|
||||||
@ -303,15 +299,13 @@ public function reduceHostAmount($user_id, $host_id, $module_id, $amount = 0, $d
|
|||||||
} finally {
|
} finally {
|
||||||
optional($lock)->release();
|
optional($lock)->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addHostPayoutBalance($user_id, $host_id, $module_id, $amount, $description)
|
public function addHostPayoutBalance($user_id, $host_id, $module_id, $amount, $description)
|
||||||
{
|
{
|
||||||
$data = [
|
$data = [
|
||||||
'type' => 'payout',
|
'type' => 'payout',
|
||||||
'payment' => 'balances',
|
'payment' => 'balance',
|
||||||
'description' => $description,
|
'description' => $description,
|
||||||
'income' => 0,
|
'income' => 0,
|
||||||
'income_drops' => 0,
|
'income_drops' => 0,
|
||||||
@ -355,8 +349,6 @@ public function addAmount($user_id, $payment = 'console', $amount = 0, $descript
|
|||||||
} finally {
|
} finally {
|
||||||
optional($lock)->release();
|
optional($lock)->release();
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addIncomeBalance($user_id, $payment, $amount, $description)
|
public function addIncomeBalance($user_id, $payment, $amount, $description)
|
||||||
|
@ -55,7 +55,7 @@
|
|||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
{{ $t->balances }} 元
|
{{ $t->balance }} 元
|
||||||
<br/>
|
<br/>
|
||||||
{{ $t->drops }} Drops
|
{{ $t->drops }} Drops
|
||||||
</td>
|
</td>
|
||||||
|
Loading…
Reference in New Issue
Block a user