From 5c080b1c455f2810285f62652515169a07a4452f Mon Sep 17 00:00:00 2001 From: cyc Date: Mon, 6 Aug 2018 14:51:08 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8E=B7=E5=8F=96=E7=85=A7=E7=89=87=E5=9C=B0?= =?UTF-8?q?=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/third_party/train/controllers/search.php | 1 + application/third_party/train/models/BIZ_intel_train_model.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/application/third_party/train/controllers/search.php b/application/third_party/train/controllers/search.php index 162128af..85c98c06 100644 --- a/application/third_party/train/controllers/search.php +++ b/application/third_party/train/controllers/search.php @@ -286,6 +286,7 @@ class search extends CI_Controller{ $item->adult_seat[$i]['name'] = $seat_name; $item->adult_seat[$i]['code'] = $key_adult; $item->adult_seat[$i]['price'] = $value; + $item->adult_seat[$i]['pic'] = $this->BIZ_intel_train_model->get_seatname($key_adult)->Seat_Pic; $i++; } } diff --git a/application/third_party/train/models/BIZ_intel_train_model.php b/application/third_party/train/models/BIZ_intel_train_model.php index 46ff93ab..615287ee 100644 --- a/application/third_party/train/models/BIZ_intel_train_model.php +++ b/application/third_party/train/models/BIZ_intel_train_model.php @@ -56,7 +56,7 @@ class BIZ_intel_train_model extends CI_Model { } public function get_seatname($seat_code){ - $sql = "select Seat_EName1 from TrainSeat_Intel where Seat_code = '{$seat_code}'"; + $sql = "select Seat_EName1,Seat_Pic from TrainSeat_Intel where Seat_code = '{$seat_code}'"; $query = $this->HT->query($sql); return $query->row(); }