From 925ec29b1b754b282f6c7eaf030dfa3ea8dfcf95 Mon Sep 17 00:00:00 2001 From: "iVampireSP.com" Date: Sat, 21 Jan 2023 22:19:04 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=20=E9=9A=90=E8=97=8F=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Controllers/Application/ModuleController.php | 2 +- app/Models/Module.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/Application/ModuleController.php b/app/Http/Controllers/Application/ModuleController.php index d09c115..1aea61f 100644 --- a/app/Http/Controllers/Application/ModuleController.php +++ b/app/Http/Controllers/Application/ModuleController.php @@ -10,7 +10,7 @@ class ModuleController extends Controller { public function index() { - $modules = (new Module)->all()->makeVisible('api_token'); + $modules = (new Module)->all()->makeVisible(['api_token', 'url']); return $this->success($modules); } diff --git a/app/Models/Module.php b/app/Models/Module.php index 2236c69..9bd7e8e 100644 --- a/app/Models/Module.php +++ b/app/Models/Module.php @@ -32,7 +32,8 @@ class Module extends Authenticatable protected $hidden = [ 'api_token', 'wecom_key', - 'balance' + 'balance', + 'url' ]; protected $casts = [