瀏覽代碼

更新快速出場MQTT

station_14109
QxQ 6 年之前
父節點
當前提交
1d69f07b4c
共有 2 個檔案被更改,包括 4 行新增1 行删除
  1. +3
    -0
      config/constants.php
  2. +1
    -1
      models/Carpayment_model.php

+ 3
- 0
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)


+ 1
- 1
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')


Loading…
取消
儲存