Explorar o código

update mailsend,frontend

Tokumeikoi %!s(int64=5) %!d(string=hai) anos
pai
achega
5cd020ea7a
Modificáronse 1 ficheiros con 3 adicións e 2 borrados
  1. 3 2
      app/Http/Controllers/Admin/UserController.php

+ 3 - 2
app/Http/Controllers/Admin/UserController.php

@@ -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) {