From 18f65c36b7d43169f498a30d33d29004b668852f Mon Sep 17 00:00:00 2001 From: hskwon Date: Mon, 28 Jul 2025 10:28:56 +0900 Subject: [PATCH] =?UTF-8?q?fix=20:=20$debug=20=EB=B3=80=EC=88=98=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Helpers/ApiResponse.php | 2 +- app/Services/MemberService.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Helpers/ApiResponse.php b/app/Helpers/ApiResponse.php index 2f94c42..cd6b22a 100644 --- a/app/Helpers/ApiResponse.php +++ b/app/Helpers/ApiResponse.php @@ -79,7 +79,7 @@ public static function validate( public static function response($type = '', $query = '', $key = ''): array { - if (app()->environment('local')) $debug = true; + $debug = (app()->environment('local')) ? true : false; if ($debug) DB::enableQueryLog(); // 쿼리 추적 $result = match ($type) { diff --git a/app/Services/MemberService.php b/app/Services/MemberService.php index 357c43c..25e610d 100644 --- a/app/Services/MemberService.php +++ b/app/Services/MemberService.php @@ -47,7 +47,7 @@ public static function getMember(int $userNo) */ public static function getMyInfo() { - if (app()->environment('local')) $debug = true; + $debug = (app()->environment('local')) ? true : false; if ($debug) DB::enableQueryLog(); // 쿼리 추적 $apiUser = app('api_user');