From e254cb7bcbcfa227841aff601453887a44dffe0d Mon Sep 17 00:00:00 2001 From: orvice Date: Sun, 3 Apr 2016 22:38:12 +0800 Subject: [PATCH] #435 --- app/Controllers/Mu/UserController.php | 4 ++-- app/Models/User.php | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/Controllers/Mu/UserController.php b/app/Controllers/Mu/UserController.php index 8b8afd169..b277ded11 100644 --- a/app/Controllers/Mu/UserController.php +++ b/app/Controllers/Mu/UserController.php @@ -16,11 +16,11 @@ class UserController extends BaseController // User List public function index($request, $response, $args) { - $user = User::all(); + $users = User::all(); $res = [ "ret" => 1, "msg" => "ok", - "data" => $user + "data" => $users ]; return $this->echoJson($response, $res); } diff --git a/app/Models/User.php b/app/Models/User.php index b1df3e1e6..b0125897d 100755 --- a/app/Models/User.php +++ b/app/Models/User.php @@ -25,7 +25,7 @@ class User extends Model "u" => 'int', "d" => 'int', "port" => 'int', - "transfer_enable" => 'int', + "transfer_enable" => 'float', "enable" => 'int', 'is_admin' => 'boolean', ];