From 1d69f07b4cb61cee7ac62bacae1d463e798a3ca9 Mon Sep 17 00:00:00 2001 From: QxQ Date: Fri, 11 Jan 2019 16:15:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E5=BF=AB=E9=80=9F=E5=87=BA?= =?UTF-8?q?=E5=A0=B4MQTT?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/constants.php | 3 +++ models/Carpayment_model.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/config/constants.php b/config/constants.php index 0f72160..8c8080c 100644 --- a/config/constants.php +++ b/config/constants.php @@ -78,6 +78,9 @@ define('MQ_ALTOB_MSG', 'msg'); // MQTT TOPIC: cmd: msg define('MQ_ALTOB_MSG_END_TAG', ',altob'); // MQTT TOPIC: cmd: msg end tag define('MQ_ALTOB_888', '888'); // MQTT TOPIC: cmd: 888 define('MQ_ALTOB_888_END_TAG', ',altob'); // MQTT TOPIC: cmd: 888 end tag +define('MQ_ALTOB_POS', 'pos'); // MQTT TOPIC: cmd: pos +define('MQ_ALTOB_POS_END_TAG', ',altob'); // MQTT TOPIC: cmd: pos end tag + define('MEMCACHE_HOST', 'localhost'); // memcache host define('MEMCACHE_PORT', 11211); // memcache post no (default:11211) diff --git a/models/Carpayment_model.php b/models/Carpayment_model.php index dc7eafb..e0976d5 100644 --- a/models/Carpayment_model.php +++ b/models/Carpayment_model.php @@ -315,7 +315,7 @@ class Carpayment_model extends CI_Model ->where(array( 'in_out' => 'CI', 'finished' => 0, 'err' => 0, 'obj_type' => 1, 'member_no' => 0, 'in_time > ' => date("Y-m-d H:i:s", strtotime('- 1 minutes')), // 限時 - 'ticket_no' => '', + 'ticket_dev' => '', 'in_lane' => $lanes[$parms['devno']]['in_lane'] )) ->order_by('cario_no', 'desc')