From bd0ae25afdedb4a82181de4885a12bbc5134fc73 Mon Sep 17 00:00:00 2001 From: Hide_D Date: Sat, 21 Dec 2024 09:14:14 +0000 Subject: [PATCH] =?UTF-8?q?game:=20=EC=A7=95=EA=B3=84=EA=B0=80=20=EB=82=A8?= =?UTF-8?q?=EC=95=84=EC=9E=88=EB=8A=94=20=EA=B2=BD=EC=9A=B0=20=ED=83=88?= =?UTF-8?q?=ED=87=B4=20=EB=B6=88=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- i_entrance/j_delete_me.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/i_entrance/j_delete_me.php b/i_entrance/j_delete_me.php index e3c86419..1aa27928 100644 --- a/i_entrance/j_delete_me.php +++ b/i_entrance/j_delete_me.php @@ -40,6 +40,16 @@ if($userInfo['delete_after']){ ]); } +$penaltyList = JSON::decode($userInfo['penalty']??'{}'); +foreach($penaltyList as $penaltyKey=>$penaltyValue){ + if($penaltyValue['expire'] ?? 0 > TimeUtil::now()){ + Json::die([ + 'result'=>false, + 'reason'=>"징계가 남아있어 탈퇴할 수 없습니다." + ]); + } +} + $db->update('member',[ 'delete_after'=>TimeUtil::nowAddMinutes(60*24*30) ], 'no=%i', $userID);