From 3987832382730f28f7b8b6e1b04a27762a7ca465 Mon Sep 17 00:00:00 2001 From: QxQ Date: Fri, 22 Mar 2019 14:50:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E8=BB=8A=E4=BD=8D=E6=95=B8?= =?UTF-8?q?=E6=98=AF=E4=BB=B6=E8=A7=B8=E7=99=BC=E6=A9=9F=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- models/Pks_model.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/models/Pks_model.php b/models/Pks_model.php index 0fb047f..fdcd43b 100644 --- a/models/Pks_model.php +++ b/models/Pks_model.php @@ -174,7 +174,7 @@ class Pks_model extends CI_Model } // 找出與與此車位相關的群組 - $sql = "select group_id, tot, renum, availables + $sql = "select group_id, tot, renum, availables, station_no from pks_groups where group_id in (select group_id from pks_group_member where station_no = {$parms['sno']} and pksno = {$parms['pksno']})"; @@ -202,6 +202,15 @@ class Pks_model extends CI_Model //$this->vars['mqtt']->publish(MQ_TOPIC_SUBLEVEL, "{$rows['group_id']},{$group_va_pad}", 0); // 送出剩餘車位數給字幕機 $this->mq_send(MQ_TOPIC_SUBLEVEL, "{$rows['group_id']},{$group_va_pad}"); + + if($rows['station_no'] == 12171) + { + $this->carno_updata_12171(); + } + else if($rows['station_no'] == 40668) + { + $this->carno_updata_40668(); + } } }