浏览代码

upd, get_valid_seat3

station_14109
altob.rd 8 年前
父节点
当前提交
bb1788a2d2
共有 1 个文件被更改,包括 12 次插入4 次删除
  1. +12
    -4
      controllers/Parkingquery.php

+ 12
- 4
controllers/Parkingquery.php 查看文件

@@ -137,7 +137,7 @@ class Parkingquery extends CI_Controller
// 停車位置查詢(板橋好停車)
// http://203.75.167.89/parkingquery.html/check_location/ABC1234
// http://xxxxxxxx/parkingquery.html/check_location/ABC1234
public function check_location()
{
$lpr = $this->uri->segment(3);
@@ -147,7 +147,7 @@ class Parkingquery extends CI_Controller
// 空車位導引
// http://203.75.167.89/parkingquery.html/get_valid_seat
// http://xxxxxxxx/parkingquery.html/get_valid_seat
public function get_valid_seat()
{
$pksno = $this->uri->segment(3, 0); // 從某一個車位開始, 若無則設0
@@ -156,7 +156,7 @@ class Parkingquery extends CI_Controller
}
// 空車位導引 (身障)
// http://203.75.167.89/parkingquery.html/get_valid_seat2
// http://xxxxxxxx/parkingquery.html/get_valid_seat2
public function get_valid_seat2()
{
$pksno = $this->uri->segment(3, 0); // 從某一個車位開始, 若無則設0
@@ -164,9 +164,17 @@ class Parkingquery extends CI_Controller
echo json_encode($data, JSON_UNESCAPED_UNICODE);
}
// 空車位導引 (婦友)
// http://xxxxxxxx/parkingquery.html/get_valid_seat3
public function get_valid_seat3()
{
$pksno = $this->uri->segment(3, 0); // 從某一個車位開始, 若無則設0
$data = $this->parkingquery_model->get_valid_seat($pksno, 4);
echo json_encode($data, JSON_UNESCAPED_UNICODE);
}
// 防盜鎖車
// http://203.75.167.89/parkingquery.html/security_action/ABC1234/pswd/2
// http://xxxxxxxx/parkingquery.html/security_action/ABC1234/pswd/2
public function security_action()
{
$lpr = $this->uri->segment(3);


正在加载...
取消
保存