update: commission withdraw limit

This commit is contained in:
Tokumeikoi 2020-10-29 01:00:22 +08:00
parent c02db9d957
commit 9dc19baeb6

View File

@ -154,7 +154,7 @@ class TicketController extends Controller
{
$user = User::find($request->session()->get('id'));
$limit = config('v2board.commission_withdraw_limit', 100);
if ($limit < ($user->commission_balance / 100)) {
if ($limit > ($user->commission_balance / 100)) {
abort(500, '当前系统要求的提现门槛为:' . $limit);
}
DB::beginTransaction();