From 2f293322450593565b2069e99e056f4fefa67cbc Mon Sep 17 00:00:00 2001 From: Jimmy Liow Date: Wed, 3 Jan 2024 13:53:51 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E6=9E=90=E4=BB=B7=E6=A0=BC=E6=A0=87?= =?UTF-8?q?=E7=AD=BE=E5=A2=9E=E5=8A=A0=20$dept=5Fsn?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/controllers/information.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/application/controllers/information.php b/application/controllers/information.php index d284e4fc..a314fdd2 100644 --- a/application/controllers/information.php +++ b/application/controllers/information.php @@ -1352,8 +1352,8 @@ class Information extends CI_Controller var_dump($price); } } - - $price_tag_list = $this->parse_price_tag($price_rule); + + $price_tag_list = $this->parse_price_tag($price_rule, $dept_sn); echo 'price_tag_list: '; var_dump($price_tag_list); } @@ -1365,7 +1365,7 @@ class Information extends CI_Controller * @param string $price_content 包含价格标签的内容 * @return array 包含价格与占位符的数组 */ - public function parse_price_tag($price_content) + public function parse_price_tag($price_content, $dept_sn = 28) { $price_item_array = $this->price_pregmatch($price_content); $price_tag_list = []; @@ -1374,7 +1374,7 @@ class Information extends CI_Controller $price_date = !empty($price_item->price_date) ? $price_item->price_date : date('Y-m-d', time() + 86400 * 7); //当前时间7天后的价格 $price_number = ''; //优先读取新的价格体系 - $price = $this->PrimeLinePrice_model->search($price_item->cli_no, 1, $price_item->cli_grade, $price_item->person_size, $price_date); + $price = $this->PrimeLinePrice_model->search($price_item->cli_no, 1, $price_item->cli_grade, $price_item->person_size, $price_date, $dept_sn); if (!empty($price)) { switch (strtoupper($price_item->price_people)) { case 'A':