From d1c74c15da21b9da91308593431c12be84b70261 Mon Sep 17 00:00:00 2001 From: Hyojin Ahn Date: Thu, 30 Apr 2026 09:01:42 -0400 Subject: [PATCH] =?UTF-8?q?v1.2.7=20-=20[MAP]=20Container=20=EA=B5=90?= =?UTF-8?q?=EC=B2=B4=20=EC=A4=91=EB=B3=B5=20=EC=9E=85=EB=A0=A5=20=EB=B0=A9?= =?UTF-8?q?=EC=A7=80.=20-=20[INSTALL=20WAIT=20LIST]=20Oil=20Pickup=20?= =?UTF-8?q?=EC=98=B5=EC=85=98=20=EC=B6=94=EA=B0=80=20js=20=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public_html/assets/api/install.php | 14 ++++++++++++++ public_html/doc/install_wait_list.php | 4 ++-- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/public_html/assets/api/install.php b/public_html/assets/api/install.php index 228306c..9087f0f 100644 --- a/public_html/assets/api/install.php +++ b/public_html/assets/api/install.php @@ -100,10 +100,24 @@ trait InstallAPI { NOW() AS iw_created_at FROM tbl_customer c WHERE c.c_uid = '{$c_uid}' + AND NOT EXISTS ( + SELECT 1 + FROM tbl_install_waitlist iw + WHERE iw.iw_customer_uid = c.c_uid + AND iw.iw_status NOT IN ('DELETED','COMPLETED') + ) "; qry($sql); + if (mysqli_affected_rows($GLOBALS['conn']) == 0) { + echo $this->json([ + 'ok' => 0, + 'msg' => '이미 waitlist에 존재합니다.' + ]); + return; + } + $iw_uid = mysqli_insert_id($GLOBALS['conn']); // or global db handle echo $this->json([ diff --git a/public_html/doc/install_wait_list.php b/public_html/doc/install_wait_list.php index ace2890..8432175 100644 --- a/public_html/doc/install_wait_list.php +++ b/public_html/doc/install_wait_list.php @@ -2128,8 +2128,8 @@ while ($row = mysqli_fetch_assoc($rmem)) { unassignDailyInstall(ids); }); - - + +