update mailsend,frontend

This commit is contained in:
Tokumeikoi 2020-02-15 20:32:38 +08:00
parent 43e7bb6c9f
commit 5cd020ea7a

View File

@ -65,7 +65,9 @@ class UserController extends Controller
'plan_id', 'plan_id',
'commission_rate', 'commission_rate',
'discount', 'discount',
'is_admin' 'is_admin',
'u',
'd'
]); ]);
$user = User::find($request->input('id')); $user = User::find($request->input('id'));
if (!$user) { if (!$user) {
@ -79,7 +81,6 @@ class UserController extends Controller
} else { } else {
unset($updateData['password']); unset($updateData['password']);
} }
$updateData['transfer_enable'] = $updateData['transfer_enable'] * 1073741824;
if (isset($updateData['plan_id'])) { if (isset($updateData['plan_id'])) {
$plan = Plan::find($updateData['plan_id']); $plan = Plan::find($updateData['plan_id']);
if (!$plan) { if (!$plan) {